1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-22 02:53:09 +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 // Though these exceptions cannot be ignored
return throwable return throwable
.hasAssignableCause( .hasAssignableCause(
// bug in app
NullPointerException::class.java, NullPointerException::class.java,
IllegalArgumentException::class.java, // bug in app IllegalArgumentException::class.java,
OnErrorNotImplementedException::class.java, OnErrorNotImplementedException::class.java,
MissingBackpressureException::class.java, MissingBackpressureException::class.java,
// bug in operator
IllegalStateException::class.java, IllegalStateException::class.java,
) // bug in operator )
} }
fun reportException(throwable: Throwable) { fun reportException(throwable: Throwable) {

View File

@ -41,7 +41,7 @@ public class ContentSettingsFragment extends BasePreferenceFragment {
(preference, newValue) -> { (preference, newValue) -> {
ImageStrategy.setPreferredImageQuality(PreferredImageQuality ImageStrategy.setPreferredImageQuality(PreferredImageQuality
.fromPreferenceKey(requireContext(), (String) newValue)); .fromPreferenceKey(requireContext(), (String) newValue));
final var loader = SingletonImageLoader.get(preference.getContext()); final var loader = SingletonImageLoader.get(preference.getContext());
loader.getMemoryCache().clear(); loader.getMemoryCache().clear();
loader.getDiskCache().clear(); loader.getDiskCache().clear();
Toast.makeText(preference.getContext(), Toast.makeText(preference.getContext(),