Intent.getAction() can return null
Make sure we don't rely on action being non-null when it could be. This fixes some paths into this Settings screen. Bug: 5246883 Change-Id: I13e247ff95f389a45f5031a559d5ca4914082af3
This commit is contained in:
@@ -563,11 +563,11 @@ public class ManageApplications extends Fragment implements
|
|||||||
if (className.equals(RunningServicesActivity.class.getName())) {
|
if (className.equals(RunningServicesActivity.class.getName())) {
|
||||||
defaultTabTag = TAB_RUNNING;
|
defaultTabTag = TAB_RUNNING;
|
||||||
} else if (className.equals(StorageUseActivity.class.getName())
|
} else if (className.equals(StorageUseActivity.class.getName())
|
||||||
|| action.equals(Intent.ACTION_MANAGE_PACKAGE_STORAGE)) {
|
|| Intent.ACTION_MANAGE_PACKAGE_STORAGE.equals(action)) {
|
||||||
mSortOrder = SORT_ORDER_SIZE;
|
mSortOrder = SORT_ORDER_SIZE;
|
||||||
mFilterApps = FILTER_APPS_ALL;
|
mFilterApps = FILTER_APPS_ALL;
|
||||||
defaultTabTag = TAB_ALL;
|
defaultTabTag = TAB_ALL;
|
||||||
} else if (action.equals(Settings.ACTION_MANAGE_ALL_APPLICATIONS_SETTINGS)) {
|
} else if (Settings.ACTION_MANAGE_ALL_APPLICATIONS_SETTINGS.equals(action)) {
|
||||||
// Select the all-apps tab, with the default sorting
|
// Select the all-apps tab, with the default sorting
|
||||||
defaultTabTag = TAB_ALL;
|
defaultTabTag = TAB_ALL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user