Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09b1ba97 authored by Stefan Niedermann's avatar Stefan Niedermann
Browse files

Fix NPE in settings

parent c3debd3d
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -29,7 +29,6 @@ public class PreferencesFragment extends PreferenceFragmentCompat implements Bra
    private BrandedSwitchPreference fontPref;
    private BrandedSwitchPreference fontPref;
    private BrandedSwitchPreference lockPref;
    private BrandedSwitchPreference lockPref;
    private BrandedSwitchPreference wifiOnlyPref;
    private BrandedSwitchPreference wifiOnlyPref;
    private BrandedSwitchPreference brandingPref;
    private BrandedSwitchPreference gridViewPref;
    private BrandedSwitchPreference gridViewPref;
    private BrandedSwitchPreference preventScreenCapturePref;
    private BrandedSwitchPreference preventScreenCapturePref;


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