Merge "Check getLastCustomNonConfigurationInstance() works well"
This commit is contained in:
committed by
Android (Google) Code Review
commit
99e388613d
@@ -59,7 +59,6 @@ public class StorageWizardFormatProgress extends StorageWizardBase {
|
|||||||
setHeaderText(R.string.storage_wizard_format_progress_title, getDiskShortDescription());
|
setHeaderText(R.string.storage_wizard_format_progress_title, getDiskShortDescription());
|
||||||
setBodyText(R.string.storage_wizard_format_progress_body, getDiskDescription());
|
setBodyText(R.string.storage_wizard_format_progress_body, getDiskDescription());
|
||||||
|
|
||||||
// TODO (b/111151113) : Need to check it again.
|
|
||||||
mTask = (PartitionTask) getLastCustomNonConfigurationInstance();
|
mTask = (PartitionTask) getLastCustomNonConfigurationInstance();
|
||||||
if (mTask == null) {
|
if (mTask == null) {
|
||||||
mTask = new PartitionTask();
|
mTask = new PartitionTask();
|
||||||
@@ -69,7 +68,7 @@ public class StorageWizardFormatProgress extends StorageWizardBase {
|
|||||||
mTask.setActivity(this);
|
mTask.setActivity(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO (b/111151113) : Need to check it again.
|
|
||||||
@Override
|
@Override
|
||||||
public Object onRetainCustomNonConfigurationInstance() {
|
public Object onRetainCustomNonConfigurationInstance() {
|
||||||
return mTask;
|
return mTask;
|
||||||
|
Reference in New Issue
Block a user