From a54672f3a983766cf1dce754b3887807fcb723fa Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Wed, 24 Jun 2009 12:45:09 -0700 Subject: [PATCH] Some cleanup of settings launching, adding shortcuts. - Move the battery usage item from applications to phone info. - Give the battery usage item a summary. - Fiddle with the manifest to make it so we can launch parts of the settings app without messing up launching of the main app. (That is, remove affinities so they each are treated as different tasks.) - Add the ability to make shortcuts to some key settings panels. --- AndroidManifest.xml | 41 +++++++++++++++++--- res/values/strings.xml | 4 ++ res/xml/application_settings.xml | 8 ---- res/xml/device_info_settings.xml | 9 +++++ src/com/android/settings/CreateShortcut.java | 25 ++++++++++++ 5 files changed, 73 insertions(+), 14 deletions(-) create mode 100644 src/com/android/settings/CreateShortcut.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 03978cc756a..39d501970fa 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -36,11 +36,14 @@ - + @@ -51,6 +54,13 @@ + + + + + + + @@ -76,6 +87,7 @@ + @@ -102,11 +114,13 @@ + @@ -155,12 +169,14 @@ + @@ -172,18 +188,21 @@ - + + @@ -192,6 +211,7 @@ + @@ -225,6 +245,7 @@ @@ -233,6 +254,7 @@ + @@ -244,13 +266,16 @@ - + + @@ -369,7 +394,7 @@ - @@ -527,10 +552,14 @@ + android:label="@string/power_usage_summary_title" + android:clearTaskOnLaunch="true" + > + + diff --git a/res/values/strings.xml b/res/values/strings.xml index 359c2be7278..2dd2f84fc2f 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -424,6 +424,8 @@ Settings + + Settings Airplane mode @@ -1638,6 +1640,8 @@ found in the list of installed applications. Battery use + + What has been using the battery Battery use since unplugged diff --git a/res/xml/application_settings.xml b/res/xml/application_settings.xml index 4da20365050..8d0a7cb5153 100644 --- a/res/xml/application_settings.xml +++ b/res/xml/application_settings.xml @@ -35,14 +35,6 @@ android:targetClass="com.android.settings.quicklaunch.QuickLaunchSettings" /> - - - - diff --git a/res/xml/device_info_settings.xml b/res/xml/device_info_settings.xml index 380450046ee..80370e2e7ff 100644 --- a/res/xml/device_info_settings.xml +++ b/res/xml/device_info_settings.xml @@ -33,6 +33,15 @@ android:targetClass="com.android.settings.deviceinfo.Status" /> + + + +