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

Commit 069f926b authored by Liefu Liu's avatar Liefu Liu
Browse files

Update the sub title of SIM preference in Contacts Storage Setting, to

be consistent with "Device-only" preference.

Bug:  394335832
Test: atest ContactsStorageSettingsTest and manually test
Flag: EXEMPTED (minor fix)

	modified:   src/com/android/settings/applications/contacts/ContactsStorageSettings.java
	modified:   tests/robotests/src/com/android/settings/applications/contacts/ContactsStorageSettingsTest.java

Change-Id: Ibf52d237da468d951211e9afa323d61fa72a1206
parent ce463e41
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -232,7 +232,7 @@ public class ContactsStorageSettings extends DashboardFragment
                    getPrefContext());
            preference.setTitle(R.string.sim_card_label);
            preference.setIcon(R.drawable.ic_sim_card);
            preference.setSummary(R.string.sim_card_label);
            preference.setSummary(R.string.contacts_storage_device_only_preference_summary);
            preference.setKey(preferenceKey);
            preference.setOnClickListener(this);
            mAccountMap.put(preferenceKey, currentDefaultAccountAndState);
+2 −1
Original line number Diff line number Diff line
@@ -345,7 +345,8 @@ public class ContactsStorageSettingsTest {
        SelectorWithWidgetPreference simPreference = accountCategory.findPreference(
                String.valueOf(SIM_ACCOUNT.hashCode()));
        assertThat(simPreference.getTitle()).isEqualTo("SIM");
        assertThat(simPreference.getSummary()).isEqualTo("SIM");
        assertThat(simPreference.getSummary()).isEqualTo(
                "Contacts may not sync or be available on your other devices");
        assertThat(simPreference.getIcon()).isNotNull();
        assertThat(simPreference.isChecked()).isTrue();
    }