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

Commit 467fae0d authored by Michael W's avatar Michael W Committed by Gerrit Code Review
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 8b7fda7b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -310,6 +310,7 @@
    <!-- Lights settings, LED notification -->
    <string name="led_notification_title">Light settings</string>
    <string name="led_notification_text">LED light enabled by settings</string>
    <string name="notification_light_no_apps_summary">To add per app control, activate \'%1$s\' and press \'\u002b\' on the menu bar</string>

    <!-- Setting checkbox title for Whether to enable Android debugging support on the phone. -->
    <string name="enable_adb_cm">Android debugging</string>
+12 −0
Original line number Diff line number Diff line
@@ -284,6 +284,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);
            }
        }
    }