From 810496aa152fefb4969ee286dcf719c250a4e477 Mon Sep 17 00:00:00 2001 From: Mill Chen Date: Thu, 23 Aug 2018 14:27:49 +0800 Subject: [PATCH] Check getLastCustomNonConfigurationInstance() works well - make sure that StorageWizardFormatProgress runs smoothly. - confirm that mTask has the same object id when changing the screen orientation. Bug: 111151113 Test: manual Change-Id: I730c1b0f08e8a20a1aafa668fb02cd5a09fdd70a --- .../settings/deviceinfo/StorageWizardFormatProgress.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/com/android/settings/deviceinfo/StorageWizardFormatProgress.java b/src/com/android/settings/deviceinfo/StorageWizardFormatProgress.java index 287cc3f0ec6..2d94597c622 100644 --- a/src/com/android/settings/deviceinfo/StorageWizardFormatProgress.java +++ b/src/com/android/settings/deviceinfo/StorageWizardFormatProgress.java @@ -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;