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

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

cmparts: Enable always-pulse option for dual LED mode

Also fixed some formatting and removed the trackball reference in the
option string.

Change-Id: Ib7af13180fd9c0c5114797a33a38edc956cbde81
parent 95f30860
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -127,7 +127,7 @@
    <string name="dialog_clear_flash">Clear Flash</string>
    <string name="trackball_advanced_title">Advanced</string>
    <string name="pref_trackball_screen_title">Always pulse</string>
    <string name="pref_trackball_screen_summary">Trackball will pulse while screen is on.</string>
    <string name="pref_trackball_screen_summary">LED will pulse while screen is on</string>
    <string name="pref_trackball_blend_title">Blend notifications</string>
    <string name="pref_trackball_blend_summary">Blend notification colors. Overrides succession.</string>
    <string name="pref_trackball_sucess_title">Succession</string>
+8 −8
Original line number Diff line number Diff line
@@ -373,14 +373,14 @@ public class TrackballNotificationActivity extends PreferenceActivity implements
        removeCatList.setOnPreferenceChangeListener(this);
        catScreen.addPreference(removeCatList);

        // Advanced options only relevant to RGB lights
        if (!getResources().getBoolean(R.bool.has_dual_notification_led)) {
        CheckBoxPreference alwaysPulse = new CheckBoxPreference(this);
        alwaysPulse.setKey(ALWAYS_PULSE);
        alwaysPulse.setSummary(R.string.pref_trackball_screen_summary);
        alwaysPulse.setTitle(R.string.pref_trackball_screen_title);
        advancedScreen.addPreference(alwaysPulse);

         // Advanced options only relevant to RGB lights
         if (!getResources().getBoolean(R.bool.has_dual_notification_led)) {
            CheckBoxPreference blendPulse = new CheckBoxPreference(this);
            blendPulse.setKey(BLEND_COLORS);
            blendPulse.setSummary(R.string.pref_trackball_blend_summary);