Skip to content

Commit b584353

Browse files
authored
Small fixes to code style
1 parent d73314b commit b584353

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

app/src/main/java/org/schabi/newpipe/App.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,14 @@ open class App :
185185
// Though these exceptions cannot be ignored
186186
return throwable
187187
.hasAssignableCause(
188+
// bug in app
188189
NullPointerException::class.java,
189-
IllegalArgumentException::class.java, // bug in app
190+
IllegalArgumentException::class.java,
190191
OnErrorNotImplementedException::class.java,
191192
MissingBackpressureException::class.java,
193+
// bug in operator
192194
IllegalStateException::class.java,
193-
) // bug in operator
195+
)
194196
}
195197

196198
fun reportException(throwable: Throwable) {

app/src/main/java/org/schabi/newpipe/settings/ContentSettingsFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void onCreatePreferences(final Bundle savedInstanceState, final String ro
4141
(preference, newValue) -> {
4242
ImageStrategy.setPreferredImageQuality(PreferredImageQuality
4343
.fromPreferenceKey(requireContext(), (String) newValue));
44-
final var loader = SingletonImageLoader.get(preference.getContext());
44+
final var loader = SingletonImageLoader.get(preference.getContext());
4545
loader.getMemoryCache().clear();
4646
loader.getDiskCache().clear();
4747
Toast.makeText(preference.getContext(),

0 commit comments

Comments
 (0)