1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-25 09:21:14 +00:00

Disabled app icon caching

This commit is contained in:
M66B 2018-03-23 07:22:17 +01:00
parent e10c07d2fa
commit d1df09ff51
2 changed files with 4 additions and 4 deletions

View file

@ -223,8 +223,8 @@ public class AdapterLog extends CursorAdapter {
Uri uri = Uri.parse("android.resource://" + info.packageName + "/" + info.icon);
GlideApp.with(context)
.load(uri)
.diskCacheStrategy(DiskCacheStrategy.NONE)
.skipMemoryCache(true)
//.diskCacheStrategy(DiskCacheStrategy.NONE)
//.skipMemoryCache(true)
.override(iconSize, iconSize)
.into(ivIcon);
}

View file

@ -341,8 +341,8 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> im
GlideApp.with(holder.itemView.getContext())
.applyDefaultRequestOptions(new RequestOptions().format(DecodeFormat.PREFER_RGB_565))
.load(uri)
.diskCacheStrategy(DiskCacheStrategy.NONE)
.skipMemoryCache(true)
//.diskCacheStrategy(DiskCacheStrategy.NONE)
//.skipMemoryCache(true)
.override(iconSize, iconSize)
.into(holder.ivIcon);
}