diff options
author | Jeff Sharkey <jsharkey@android.com> | 2015-08-13 16:57:46 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2015-08-13 16:57:48 -0700 |
commit | 0814827e8fac983e82169c13b7136156f484e44b (patch) | |
tree | 0a163d56c2232de461d6671e585160135af0a046 /src | |
parent | 9f879ef009863a0674e891ad0e51b1b216da5beb (diff) | |
download | packages_apps_Settings-0814827e8fac983e82169c13b7136156f484e44b.zip packages_apps_Settings-0814827e8fac983e82169c13b7136156f484e44b.tar.gz packages_apps_Settings-0814827e8fac983e82169c13b7136156f484e44b.tar.bz2 |
Show storage slow dialog allowing state loss.
We're not picky about losing state here, since the adoption actually
finished under the hood and we're just warning the user that it's
slow.
Without this change, we could end up throwing and re-adopting the
same device twice, which causes issues on sprout-style devices that
only migrate primary storage once.
Bug: 22867250
Change-Id: I1491679ab802f19fe25b82e9b452ca3dabdfec0d
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/deviceinfo/StorageWizardFormatProgress.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/deviceinfo/StorageWizardFormatProgress.java b/src/com/android/settings/deviceinfo/StorageWizardFormatProgress.java index 1a5a70c..6f89ff5 100644 --- a/src/com/android/settings/deviceinfo/StorageWizardFormatProgress.java +++ b/src/com/android/settings/deviceinfo/StorageWizardFormatProgress.java @@ -153,7 +153,7 @@ public class StorageWizardFormatProgress extends StorageWizardBase { // storage or slower. if (Float.isNaN(pct) || pct < 0.25) { final SlowWarningFragment dialog = new SlowWarningFragment(); - dialog.show(activity.getFragmentManager(), TAG_SLOW_WARNING); + dialog.showAllowingStateLoss(activity.getFragmentManager(), TAG_SLOW_WARNING); } else { activity.onFormatFinished(); } |