Update titles and summaries of the Date and time settings page
Design doc: go/dd-android-settings-time-2024 This change covers Part 1, which consists of adding user-friendly summary under each toggle and rewording titles. Bug: 296835792 Test: on-device and atest Flag: EXEMPT resource only update Change-Id: I0b685743599880fc1c4ad680eca9c36e4e64d0ff
This commit is contained in:
@@ -225,7 +225,8 @@ public class AutoTimeZonePreferenceControllerTest {
|
||||
when(mTimeManager.getTimeZoneCapabilitiesAndConfig()).thenReturn(capabilitiesAndConfig);
|
||||
when(mTimeManager.updateTimeZoneConfiguration(Mockito.any())).thenReturn(true);
|
||||
|
||||
assertThat(mController.getSummary()).isEqualTo("");
|
||||
assertThat(mController.getSummary().toString()).isEqualTo(
|
||||
mContext.getString(R.string.zone_auto_title_summary));
|
||||
|
||||
capabilitiesAndConfig = createCapabilitiesAndConfig(
|
||||
/* autoSupported= */true, /* autoEnabled= */true, /* telephonySupported= */
|
||||
@@ -233,7 +234,7 @@ public class AutoTimeZonePreferenceControllerTest {
|
||||
when(mTimeManager.getTimeZoneCapabilitiesAndConfig()).thenReturn(capabilitiesAndConfig);
|
||||
when(mTimeManager.updateTimeZoneConfiguration(Mockito.any())).thenReturn(true);
|
||||
|
||||
assertThat(mController.getSummary()).isEqualTo(
|
||||
assertThat(mController.getSummary().toString()).isEqualTo(
|
||||
mContext.getString(R.string.auto_zone_requires_location_summary));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user