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:
parent
d73314b4dd
commit
b584353f4d
@ -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) {
|
||||||
|
@ -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(),
|
||||||
|
Loading…
Reference in New Issue
Block a user