Fix NPE in settings

This commit is contained in:
Stefan Niedermann 2021-04-01 14:53:49 +02:00
parent c3debd3da5
commit 09b1ba9725

View file

@ -29,7 +29,6 @@ public class PreferencesFragment extends PreferenceFragmentCompat implements Bra
private BrandedSwitchPreference fontPref;
private BrandedSwitchPreference lockPref;
private BrandedSwitchPreference wifiOnlyPref;
private BrandedSwitchPreference brandingPref;
private BrandedSwitchPreference gridViewPref;
private BrandedSwitchPreference preventScreenCapturePref;
@ -118,7 +117,6 @@ public class PreferencesFragment extends PreferenceFragmentCompat implements Bra
fontPref.applyBrand(mainColor, textColor);
lockPref.applyBrand(mainColor, textColor);
wifiOnlyPref.applyBrand(mainColor, textColor);
brandingPref.applyBrand(mainColor, textColor);
gridViewPref.applyBrand(mainColor, textColor);
preventScreenCapturePref.applyBrand(mainColor, textColor);
}