1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-21 17:45:29 +01:00

Small fixes to code style

This commit is contained in:
Stypox 2024-11-21 10:52:15 +01:00 committed by GitHub
parent d73314b4dd
commit b584353f4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -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) {

View File

@ -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(),