From 9ac1e31e2f15b2d00e1eceff0537becfe2a655e3 Mon Sep 17 00:00:00 2001 From: Roman Birg Date: Mon, 23 Mar 2015 18:22:17 -0700 Subject: Settings: prompt to fill new profiles out only once On rotate, this popup would keep coming up, even after the user expressed yes/no. Change-Id: Iac47797f8a9538d0bedf1db4a41209578df544f3 Signed-off-by: Roman Birg --- src/com/android/settings/profiles/SetupActionsFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/com/android/settings/profiles') diff --git a/src/com/android/settings/profiles/SetupActionsFragment.java b/src/com/android/settings/profiles/SetupActionsFragment.java index a2f41fe..6f3edb2 100644 --- a/src/com/android/settings/profiles/SetupActionsFragment.java +++ b/src/com/android/settings/profiles/SetupActionsFragment.java @@ -142,7 +142,8 @@ public class SetupActionsFragment extends SettingsPreferenceFragment rebuildItemList(); setHasOptionsMenu(true); - if (mNewProfileMode) { + if (mNewProfileMode && savedInstanceState == null) { + // only pop this up on first creation requestFillProfileFromSettingsDialog(); } } -- cgit v1.1