From b584353f4d18eb45758f7a935f18f20b9728f097 Mon Sep 17 00:00:00 2001 From: Stypox Date: Thu, 21 Nov 2024 10:52:15 +0100 Subject: [PATCH] Small fixes to code style --- app/src/main/java/org/schabi/newpipe/App.kt | 6 ++++-- .../schabi/newpipe/settings/ContentSettingsFragment.java | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/App.kt b/app/src/main/java/org/schabi/newpipe/App.kt index 105d54e40..0c065f491 100644 --- a/app/src/main/java/org/schabi/newpipe/App.kt +++ b/app/src/main/java/org/schabi/newpipe/App.kt @@ -185,12 +185,14 @@ open class App : // Though these exceptions cannot be ignored return throwable .hasAssignableCause( + // bug in app NullPointerException::class.java, - IllegalArgumentException::class.java, // bug in app + IllegalArgumentException::class.java, OnErrorNotImplementedException::class.java, MissingBackpressureException::class.java, + // bug in operator IllegalStateException::class.java, - ) // bug in operator + ) } fun reportException(throwable: Throwable) { diff --git a/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsFragment.java b/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsFragment.java index bb3828265..fca8c7162 100644 --- a/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsFragment.java +++ b/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsFragment.java @@ -41,7 +41,7 @@ public class ContentSettingsFragment extends BasePreferenceFragment { (preference, newValue) -> { ImageStrategy.setPreferredImageQuality(PreferredImageQuality .fromPreferenceKey(requireContext(), (String) newValue)); - final var loader = SingletonImageLoader.get(preference.getContext()); + final var loader = SingletonImageLoader.get(preference.getContext()); loader.getMemoryCache().clear(); loader.getDiskCache().clear(); Toast.makeText(preference.getContext(),