Merge "Show 'Clear storage' on customize manage space button"
This commit is contained in:
committed by
Android (Google) Code Review
commit
63e627ca93
@@ -4668,8 +4668,6 @@
|
||||
<string name="reset_app_preferences_desc">This will reset all preferences for:\n\n<li>Disabled apps</li>\n<li>Disabled app notifications</li>\n<li>Default applications for actions</li>\n<li>Background data restrictions for apps</li>\n<li>Any permission restrictions</li>\n<li>Battery usage settings</li>\n\nYou will not lose any app data.</string>
|
||||
<!-- [CHAR LIMIT=25] Manage applications screen, menu item. Confirmation button of dialog to confirm resetting user's app preferences. -->
|
||||
<string name="reset_app_preferences_button">Reset apps</string>
|
||||
<!-- Manage applications screen, individual app screen, button label when the user wants to manage the space taken up by an app. -->
|
||||
<string name="manage_space_text">Manage space</string>
|
||||
<!-- Text for menu option in ManageApps screen to present various menu options -->
|
||||
<string name="filter">Filter</string>
|
||||
<!-- Title of dialog for presenting filter options -->
|
||||
|
@@ -309,11 +309,7 @@ public class AppStorageSettings extends AppInfoWithHeader
|
||||
.setButton1Enabled(false);
|
||||
mCanClearData = false;
|
||||
} else {
|
||||
if (appHasSpaceManagementUI) {
|
||||
mButtonsPref.setButton1Text(R.string.manage_space_text);
|
||||
} else {
|
||||
mButtonsPref.setButton1Text(R.string.clear_user_data_text);
|
||||
}
|
||||
mButtonsPref.setButton1Text(R.string.clear_user_data_text);
|
||||
mButtonsPref.setButton1Icon(R.drawable.ic_settings_delete)
|
||||
.setButton1OnClickListener(v -> handleClearDataClick());
|
||||
}
|
||||
|
@@ -71,7 +71,7 @@ public class SwitchBarTest {
|
||||
@Test
|
||||
public void cycleChecked_customLabel_shouldUpdateTextAndBackground() {
|
||||
final int onText = R.string.main_clear_progress_text;
|
||||
final int offText = R.string.manage_space_text;
|
||||
final int offText = R.string.clear_user_data_text;
|
||||
|
||||
mBar.setSwitchBarText(onText, offText);
|
||||
assertThat(((TextView) mBar.findViewById(R.id.switch_text)).getText())
|
||||
|
Reference in New Issue
Block a user