Modifying the ACTION_MANAGE_ALL_APPLICATIONS_SETTINGS action handling to default to All Apps tab

Change-Id: I5c18b916b09979117e4b746f521a81ca554903b4
This commit is contained in:
Winson Chung
2010-09-27 11:34:10 -07:00
parent 32d54b1936
commit 9a294912ad
2 changed files with 4 additions and 0 deletions

View File

@@ -358,6 +358,7 @@
<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" />

View 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) {