Skip to content

Commit

Permalink
Small fixes to code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Stypox authored Nov 21, 2024
1 parent d73314b commit b584353
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/src/main/java/org/schabi/newpipe/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void onCreatePreferences(final Bundle savedInstanceState, final String ro
(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(),
Expand Down

0 comments on commit b584353

Please sign in to comment.