diff options
author | Jason Monk <jmonk@google.com> | 2015-03-18 10:52:26 -0400 |
---|---|---|
committer | Jason Monk <jmonk@google.com> | 2015-03-18 11:01:35 -0400 |
commit | 337996a485bb8d3f3c59d7bec0f666387b76a359 (patch) | |
tree | 3504b9c8c11c2206f1c279be487e2b0009ca8a92 | |
parent | f9b806e5e9814728bf649a90872a6d17a0bbcbbf (diff) | |
download | packages_apps_Settings-337996a485bb8d3f3c59d7bec0f666387b76a359.tar.gz packages_apps_Settings-337996a485bb8d3f3c59d7bec0f666387b76a359.tar.bz2 packages_apps_Settings-337996a485bb8d3f3c59d7bec0f666387b76a359.zip |
Fix crash in app info
Bug: 19653600
Change-Id: Iddd2da2fcab284e34d40afe493c72bb469648380
-rw-r--r-- | src/com/android/settings/applications/AppLaunchSettings.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/settings/applications/AppLaunchSettings.java b/src/com/android/settings/applications/AppLaunchSettings.java index 24a6fe04f..c31d8ad00 100644 --- a/src/com/android/settings/applications/AppLaunchSettings.java +++ b/src/com/android/settings/applications/AppLaunchSettings.java @@ -42,7 +42,6 @@ import com.android.settings.Utils; import com.android.settings.applications.ApplicationsState.AppEntry; import java.util.ArrayList; -import java.util.Collections; import java.util.List; public class AppLaunchSettings extends AppInfoWithHeader implements OnClickListener { @@ -168,9 +167,9 @@ public class AppLaunchSettings extends AppInfoWithHeader implements OnClickListe private static boolean hasPreferredActivities(PackageManager pm, String packageName) { // Get list of preferred activities - List<ComponentName> prefActList = Collections.emptyList(); + List<ComponentName> prefActList = new ArrayList<>(); // Intent list cannot be null. so pass empty list - List<IntentFilter> intentList = Collections.emptyList(); + List<IntentFilter> intentList = new ArrayList<>(); pm.getPreferredActivities(intentList, prefActList, packageName); if (localLOGV) { Log.i(TAG, "Have " + prefActList.size() + " number of activities in preferred list"); |