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:
@@ -34,6 +34,8 @@ import android.os.UserHandle;
|
||||
|
||||
import androidx.preference.Preference;
|
||||
|
||||
import com.android.settings.R;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -153,6 +155,12 @@ public class AutoTimePreferenceControllerTest {
|
||||
assertThat(mController.isEnabled()).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getSummary() {
|
||||
assertThat(mController.getSummary().toString()).isEqualTo(
|
||||
mContext.getString(R.string.date_time_auto_summary));
|
||||
}
|
||||
|
||||
private static TimeCapabilitiesAndConfig createCapabilitiesAndConfig(boolean autoSupported,
|
||||
boolean autoEnabled) {
|
||||
int configureAutoDetectionEnabledCapability =
|
||||
|
||||
Reference in New Issue
Block a user