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

Commit f01ba083 authored by Roman Birg's avatar Roman Birg
Browse files

Settings: display light pulse dialog settings conditionally



If the device doesn't support LED pulsing, don't show the settings.

REF: CYNGNOS-403
Change-Id: I2316a4fd7a3a27c9bc046eda3bd374acc1edcf37
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent f56fac09
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -58,7 +58,8 @@ public class ApplicationLightPreference extends DialogPreference {
        mColorValue = DEFAULT_COLOR;
        mOnValue = DEFAULT_TIME;
        mOffValue = DEFAULT_TIME;
        mOnOffChangeable = true;
        mOnOffChangeable = context.getResources().getBoolean(
                com.android.internal.R.bool.config_ledCanPulse);
        init();
    }

@@ -73,7 +74,8 @@ public class ApplicationLightPreference extends DialogPreference {
        mColorValue = color;
        mOnValue = onValue;
        mOffValue = offValue;
        mOnOffChangeable = true;
        mOnOffChangeable = context.getResources().getBoolean(
                com.android.internal.R.bool.config_ledCanPulse);
        init();
    }