From 4684ae8eca46810000311ad7753498e6d372c911 Mon Sep 17 00:00:00 2001 From: Adam Powell Date: Wed, 3 Oct 2012 16:29:56 -0700 Subject: [PATCH] Navigation fixes for Settings Change quick-entry points to Settings to have taskAffinity="", excludeFromRecents="true", and no parentActivityName. This makes the various quick shortcuts more standalone; their task state does not persist and they have no Up navigation available. As most shortcuts do not launch these activities with FLAG_ACTIVITY_TASK_ON_HOME, Back will return the user to the previous task. This does not affect the "real" versions of these settings screens as navigated to through the front door of the Settings app; those screens are reached through SubSettings instances with specific fragments added. Bug 7276291 Change-Id: I7864437277601a3f6b6beded44a5edfd4636010c --- AndroidManifest.xml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 9df3c60c109..112b4b57695 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -124,7 +124,7 @@ android:taskAffinity="" android:label="@string/wifi_settings" android:configChanges="orientation|keyboardHidden|screenSize" - android:parentActivityName="Settings"> + android:excludeFromRecents="true"> @@ -265,7 +265,7 @@ + android:excludeFromRecents="true"> @@ -304,7 +304,7 @@ + android:excludeFromRecents="true"> @@ -359,7 +359,7 @@ + android:excludeFromRecents="true"> @@ -379,7 +379,8 @@ + android:taskAffinity="" + android:excludeFromRecents="true"> @@ -549,7 +550,7 @@ + android:excludeFromRecents="true"> @@ -578,7 +579,7 @@ + android:excludeFromRecents="true"> @@ -643,7 +644,7 @@ @@ -763,7 +764,7 @@ android:label="@string/location_settings_title" android:configChanges="orientation|keyboardHidden|screenSize" android:taskAffinity="" - android:parentActivityName="Settings"> + android:excludeFromRecents="true"> @@ -902,7 +903,7 @@ android:label="@string/accessibility_settings" android:configChanges="orientation|keyboardHidden|screenSize" android:taskAffinity="" - android:parentActivityName="Settings"> + android:excludeFromRecents="true"> @@ -1201,8 +1202,8 @@ + android:taskAffinity="" + android:excludeFromRecents="true"> @@ -1327,7 +1328,7 @@ android:label="@string/power_usage_summary_title" android:uiOptions="none" android:taskAffinity="" - android:parentActivityName="Settings"> + android:excludeFromRecents="true"> @@ -1439,7 +1440,7 @@ android:label="@string/data_usage_summary_title" android:uiOptions="none" android:taskAffinity="" - android:parentActivityName="Settings"> + android:excludeFromRecents="true">