Move content later button doesn't work on Migration Wizard
"Move content later" button doesn't work on StorageWizardMigrateConfirm screen which is shown when end-user try to migrate data from adopted SD Card to internal storage. The cause is "Move content later" button triggers to StorageWizardReady screen but cannot launch because the mDisk is null when the destination of migration is internal storage. This CL fixes to just exit StorageWizardMigrateConfirm screen when mDisk is null. Bug: 117082495 Test: manual Change-Id: Iccdccf4dda126d77458b9db35e4ec6ae6a263cb7
This commit is contained in:
@@ -85,9 +85,13 @@ public class StorageWizardMigrateConfirm extends StorageWizardBase {
|
|||||||
FeatureFactory.getFactory(this).getMetricsFeatureProvider().action(this,
|
FeatureFactory.getFactory(this).getMetricsFeatureProvider().action(this,
|
||||||
MetricsEvent.ACTION_STORAGE_MIGRATE_LATER);
|
MetricsEvent.ACTION_STORAGE_MIGRATE_LATER);
|
||||||
|
|
||||||
final Intent intent = new Intent(this, StorageWizardReady.class);
|
if (mDisk != null) {
|
||||||
intent.putExtra(EXTRA_MIGRATE_SKIP, true);
|
final Intent intent = new Intent(this, StorageWizardReady.class);
|
||||||
startActivity(intent);
|
intent.putExtra(EXTRA_MIGRATE_SKIP, true);
|
||||||
|
startActivity(intent);
|
||||||
|
} else {
|
||||||
|
finishAffinity();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user