OSDN Git Service

Modifying the ACTION_MANAGE_ALL_APPLICATIONS_SETTINGS action handling to default...
authorWinson Chung <winsonc@google.com>
Mon, 27 Sep 2010 18:34:10 +0000 (11:34 -0700)
committerWinson Chung <winsonc@google.com>
Mon, 27 Sep 2010 21:34:48 +0000 (14:34 -0700)
Change-Id: I5c18b916b09979117e4b746f521a81ca554903b4

AndroidManifest.xml
src/com/android/settings/applications/ManageApplications.java

index 1dacea4..d9b39fe 100644 (file)
                 <action android:name="android.intent.action.MAIN" />
                 <action android:name="android.intent.action.MANAGE_PACKAGE_STORAGE" />
                 <action android:name="android.settings.MANAGE_APPLICATIONS_SETTINGS" />
+                <action android:name="android.settings.MANAGE_ALL_APPLICATIONS_SETTINGS" />
                 <category android:name="android.intent.category.DEFAULT" />
                 <category android:name="android.intent.category.MONKEY" />
                 <category android:name="android.intent.category.VOICE_LAUNCH" />
index f8463c3..9c6ae7a 100644 (file)
@@ -431,6 +431,9 @@ public class ManageApplications extends TabActivity implements
             mSortOrder = SORT_ORDER_SIZE;
             mFilterApps = FILTER_APPS_ALL;
             defaultTabTag = TAB_ALL;
+        } else if (action.equals(Settings.ACTION_MANAGE_ALL_APPLICATIONS_SETTINGS)) {
+            // Select the all-apps tab, with the default sorting
+            defaultTabTag = TAB_ALL;
         }
         
         if (savedInstanceState != null) {