From 0814827e8fac983e82169c13b7136156f484e44b Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Thu, 13 Aug 2015 16:57:46 -0700 Subject: [PATCH] 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 --- .../settings/deviceinfo/StorageWizardFormatProgress.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/deviceinfo/StorageWizardFormatProgress.java b/src/com/android/settings/deviceinfo/StorageWizardFormatProgress.java index 1a5a70ca1ed..6f89ff5df8e 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(); }