Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99e38861 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Check getLastCustomNonConfigurationInstance() works well"

parents f2225d20 810496aa
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -59,7 +59,6 @@ public class StorageWizardFormatProgress extends StorageWizardBase {
        setHeaderText(R.string.storage_wizard_format_progress_title, getDiskShortDescription());
        setBodyText(R.string.storage_wizard_format_progress_body, getDiskDescription());

        // TODO (b/111151113) : Need to check it again.
        mTask = (PartitionTask) getLastCustomNonConfigurationInstance();
        if (mTask == null) {
            mTask = new PartitionTask();
@@ -69,7 +68,7 @@ public class StorageWizardFormatProgress extends StorageWizardBase {
            mTask.setActivity(this);
        }
    }
    // TODO (b/111151113) : Need to check it again.

    @Override
    public Object onRetainCustomNonConfigurationInstance() {
        return mTask;