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

Commit 434a54b2 authored by Michael W's avatar Michael W Committed by niks255
Browse files

Add explanation for customizing apps

Settings->Display & LEDs->Notification light->Apps

Currently this is header only if no apps are added yet.
Populate it with an explanation when it's empty.

Change-Id: I83193dfdd01f05bcd1d597033ef710a1b0eb7e82
parent 9b6dd9c1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -232,6 +232,7 @@
    <string name="notification_light_default_value">Default</string>
    <string name="notification_light_missed_call_title">Missed call</string>
    <string name="notification_light_voicemail_title">Voicemail</string>
    <string name="notification_light_no_apps_summary">To add per app control, activate \'%1$s\' and press \'\u002b\' on the menu bar</string>

    <!-- Backlight brightness settings screen -->
    <string name="adaptive_backlight_title">Adaptive backlight</string>
+12 −0
Original line number Diff line number Diff line
@@ -262,6 +262,18 @@ public class NotificationLightSettings extends SettingsPreferenceFragment implem
                    // Do nothing
                }
            }

            /* Display a pref explaining how to add apps */
            if (mPackages.size() == 0) {
                String summary = getResources().getString(
                        R.string.notification_light_no_apps_summary);
                String useCustom = getResources().getString(
                        R.string.notification_light_use_custom);
                Preference pref = new Preference(context);
                pref.setSummary(String.format(summary, useCustom));
                pref.setEnabled(false);
                mApplicationPrefList.addPreference(pref);
            }
        }
    }