Gives unvailable slice of Night Light a customized subtitle
When a slice depends on some setting and the setting is off, it shows "depends on another setting". Base on the new introduced attribute on ag/5843828 , assigns customized subtitle for showing the unavailabe slice when the Night Light is off. Change-Id: I5c3530281fac4ef63caf2d3ac8e2be872d704bcb Fixes: 118399193 Test: Manual
This commit is contained in:
@@ -2715,6 +2715,8 @@
|
||||
<string name="night_display_activation_on_custom">Turn on until <xliff:g name="time" example="6 AM">%1$s</xliff:g></string>
|
||||
<!-- Display settings screen, deactivation button action for custom schedule [CHAR LIMIT=40] -->
|
||||
<string name="night_display_activation_off_custom">Turn off until <xliff:g name="time" example="10 PM">%1$s</xliff:g></string>
|
||||
<!-- Night display slice screen, subtitle of intensity setting when night light is off. [CHAR LIMIT=30] -->
|
||||
<string name="night_display_not_currently_on">Night Light not currently on</string>
|
||||
|
||||
<!-- Sound & display settings screen, setting option name to change screen timeout -->
|
||||
<string name="screen_timeout">Sleep</string>
|
||||
|
||||
@@ -41,7 +41,8 @@
|
||||
android:key="night_display_temperature"
|
||||
android:title="@string/night_display_temperature_title"
|
||||
settings:keywords="@string/keywords_display_night_display"
|
||||
settings:controller="com.android.settings.display.NightDisplayIntensityPreferenceController" />
|
||||
settings:controller="com.android.settings.display.NightDisplayIntensityPreferenceController"
|
||||
settings:unavailableSliceSubtitle="@string/night_display_not_currently_on" />
|
||||
|
||||
<com.android.settingslib.widget.LayoutPreference
|
||||
android:key="night_display_activated"
|
||||
|
||||
Reference in New Issue
Block a user