Skip to content
This repository has been archived by the owner on May 21, 2020. It is now read-only.

Commit

Permalink
Reduce image size to reduce traffic consumption
Browse files Browse the repository at this point in the history
  • Loading branch information
Dounx committed Mar 29, 2018
1 parent 7a94c20 commit 95e1d42
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "me.dounx.nintendoeshophelper"
minSdkVersion 21
targetSdkVersion 27
versionCode 5
versionName "1.1.3"
versionCode 6
versionName "1.1.4"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void onBindViewHolder(ViewHolder holder, int position) {
GlideApp.with(mContext)
.load(game.getIconUrl())
.error(R.drawable.ic_no_pic)
.diskCacheStrategy(DiskCacheStrategy.ALL)
//.diskCacheStrategy(DiskCacheStrategy.ALL)
.placeholder(R.drawable.ic_loading)
.into(holder.gameImage);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void onClick(View view) {
GlideApp.with(this)
.load(mGame.getIconUrl())
.error(R.drawable.ic_no_pic)
.diskCacheStrategy(DiskCacheStrategy.ALL)
//.diskCacheStrategy(DiskCacheStrategy.ALL)
.placeholder(R.drawable.ic_loading)
.into(gamePageImage);

Expand Down

0 comments on commit 95e1d42

Please sign in to comment.