diff --git a/app/src/main/java/it/niedermann/owncloud/notes/shared/util/CustomAppGlideModule.java b/app/src/main/java/it/niedermann/owncloud/notes/shared/util/CustomAppGlideModule.java index 4ffd23426ca20016d72c4d0db0f7e77d80fd2f62..6178dc6ed1a8b8583426852275b6cedea3982b65 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/shared/util/CustomAppGlideModule.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/shared/util/CustomAppGlideModule.java @@ -7,6 +7,7 @@ import androidx.annotation.NonNull; import androidx.annotation.UiThread; import com.bumptech.glide.Glide; +import com.bumptech.glide.GlideBuilder; import com.bumptech.glide.Registry; import com.bumptech.glide.annotation.GlideModule; import com.bumptech.glide.module.AppGlideModule; @@ -20,6 +21,12 @@ public class CustomAppGlideModule extends AppGlideModule { private static final String TAG = CustomAppGlideModule.class.getSimpleName(); private static final ExecutorService clearDiskCacheExecutor = Executors.newSingleThreadExecutor(); + @Override + public void applyOptions(@NonNull Context context, @NonNull GlideBuilder builder) { + super.applyOptions(context, builder); + builder.setLogLevel(android.util.Log.ERROR); + } + @Override public void registerComponents(@NonNull Context context, @NonNull Glide glide, @NonNull Registry registry) { super.registerComponents(context, glide, registry);