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
<!-- 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>
// 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);
+ }
}
}