Revamp SD card UX
Improve the SD card setup flow so that each formatting option is provided in a separate screen with clear description and illustration.Also make sure that guest users do not have any access to formatting options.
Test: Manual testing on Pixel Device
Screenshot1: https://screenshot.googleplex.com/WJwyxFkBtbSfZmN.png
Screenshot2: https://screenshot.googleplex.com/3oBcrrgRsKTxNPC.png
Bug: 201252175
Change-Id: I77df55c40fd99cabcfc6128084be035bb5b19531
Change-Id: I757abc6076fcc8f467d8faed9f090bcdd5774ff3
(cherry picked from commit 9b432d54a6)
Merged-In: I757abc6076fcc8f467d8faed9f090bcdd5774ff3
This commit is contained in:
@@ -84,15 +84,23 @@ public class StorageWizardFormatConfirm extends InstrumentedDialogFragment {
|
||||
builder.setTitle(TextUtils.expandTemplate(
|
||||
getText(R.string.storage_wizard_format_confirm_v2_title),
|
||||
disk.getShortDescription()));
|
||||
builder.setMessage(TextUtils.expandTemplate(
|
||||
getText(R.string.storage_wizard_format_confirm_v2_body),
|
||||
if (formatPrivate) {
|
||||
builder.setMessage(TextUtils.expandTemplate(
|
||||
getText(R.string.storage_wizard_format_confirm_v2_body),
|
||||
disk.getDescription(),
|
||||
disk.getShortDescription(),
|
||||
disk.getShortDescription()));
|
||||
} else {
|
||||
builder.setMessage(TextUtils.expandTemplate(
|
||||
getText(R.string.storage_wizard_format_confirm_v2_body_external),
|
||||
disk.getDescription(),
|
||||
disk.getShortDescription(),
|
||||
disk.getShortDescription()));
|
||||
}
|
||||
|
||||
builder.setNegativeButton(android.R.string.cancel, null);
|
||||
builder.setPositiveButton(
|
||||
TextUtils.expandTemplate(getText(R.string.storage_wizard_format_confirm_v2_action),
|
||||
TextUtils.expandTemplate(getText(R.string.storage_menu_format_option),
|
||||
disk.getShortDescription()),
|
||||
(dialog, which) -> {
|
||||
final Intent intent = new Intent(context, StorageWizardFormatProgress.class);
|
||||
@@ -104,4 +112,4 @@ public class StorageWizardFormatConfirm extends InstrumentedDialogFragment {
|
||||
|
||||
return builder.create();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user