summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2015-03-18 10:52:26 -0400
committerJason Monk <jmonk@google.com>2015-03-18 11:01:35 -0400
commit337996a485bb8d3f3c59d7bec0f666387b76a359 (patch)
tree3504b9c8c11c2206f1c279be487e2b0009ca8a92
parentf9b806e5e9814728bf649a90872a6d17a0bbcbbf (diff)
downloadpackages_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.java5
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");