Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/news-android.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luhmer <david-dev@live.de>2022-09-12 18:34:21 +0300
committerDavid Luhmer <david-dev@live.de>2022-09-12 18:34:21 +0300
commitad3be213303489dc3ff9bd37f8e28cbe7a54e560 (patch)
tree3820d4b4b681cf0e5a9dd72f66276b7581d17d0a
parentc50046ada7d18babcc4867d84848ea39907fde0e (diff)
disable glide indicators in prod buildglide
-rw-r--r--News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/helper/NextcloudGlideModule.java17
1 files changed, 10 insertions, 7 deletions
diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/helper/NextcloudGlideModule.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/helper/NextcloudGlideModule.java
index 4c585baa..ef843e80 100644
--- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/helper/NextcloudGlideModule.java
+++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/helper/NextcloudGlideModule.java
@@ -9,7 +9,7 @@ import com.bumptech.glide.annotation.GlideModule;
import com.bumptech.glide.load.engine.cache.InternalCacheDiskCacheFactory;
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions;
import com.bumptech.glide.module.AppGlideModule;
-import com.github.technoir42.glide.debug.indicator.DebugIndicatorTransitionFactory;
+// import com.github.technoir42.glide.debug.indicator.DebugIndicatorTransitionFactory;
import javax.inject.Inject;
@@ -26,12 +26,6 @@ public class NextcloudGlideModule extends AppGlideModule {
@Override
public void applyOptions(Context context, GlideBuilder builder) {
- // #00ff00 Memory Cache (Green)
- // #0066ff Disk Cache (Blue)
- // #ff0000 Remote (Red)
- // #ffff00 Local (Yellow)
- builder.setDefaultTransitionOptions(Drawable.class, DrawableTransitionOptions.with(DebugIndicatorTransitionFactory.DEFAULT));
-
((NewsReaderApplication) context.getApplicationContext()).getAppComponent().injectGlideModule(this);
String cacheSize = mPrefs.getString(SettingsActivity.SP_MAX_CACHE_SIZE,"500");
@@ -43,5 +37,14 @@ public class NextcloudGlideModule extends AppGlideModule {
builder.setDiskCache(new InternalCacheDiskCacheFactory(context, diskCacheSizeBytes));
// builder.setDiskCache(new ExternalCacheDiskCacheFactory(context));
+
+
+ // #00ff00 Memory Cache (Green)
+ // #0066ff Disk Cache (Blue)
+ // #ff0000 Remote (Red)
+ // #ffff00 Local (Yellow)
+
+ // enable caching indicators for Glide
+ // builder.setDefaultTransitionOptions(Drawable.class, DrawableTransitionOptions.with(DebugIndicatorTransitionFactory.DEFAULT));
}
} \ No newline at end of file