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
This commit is contained in:
Jeff Sharkey
2015-08-13 16:57:46 -07:00
parent 9f879ef009
commit 0814827e8f

View File

@@ -153,7 +153,7 @@ public class StorageWizardFormatProgress extends StorageWizardBase {
// storage or slower. // storage or slower.
if (Float.isNaN(pct) || pct < 0.25) { if (Float.isNaN(pct) || pct < 0.25) {
final SlowWarningFragment dialog = new SlowWarningFragment(); final SlowWarningFragment dialog = new SlowWarningFragment();
dialog.show(activity.getFragmentManager(), TAG_SLOW_WARNING); dialog.showAllowingStateLoss(activity.getFragmentManager(), TAG_SLOW_WARNING);
} else { } else {
activity.onFormatFinished(); activity.onFormatFinished();
} }