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

Commit a9b583e4 authored by Steve Kondik's avatar Steve Kondik
Browse files

cmparts: Fix NPE if custom LED color option is disabled

Change-Id: I888147fb79f6fc4d6e5ad4dad482687af761167e
parent 4afa6a86
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -555,7 +555,9 @@ public class TrackballNotificationActivity extends PreferenceActivity implements
            updatePackage(pkg, value, "0", "0");
            PreferenceScreen prefSet = getPreferenceScreen();
            globalCustom = prefSet.findPreference(pkg + "_custom");
            if (globalCustom != null) {
                globalCustom.setEnabled(!value.matches("none"));
            }
            globalTest = prefSet.findPreference(pkg + "_test");
            globalTest.setEnabled(!value.matches("none"));
        } else if (key.equals(REMOVE_CATEGORY)) {