Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5774e865 authored by Jason Monk's avatar Jason Monk Committed by Android (Google) Code Review
Browse files

Merge "Fix crash in app info"

parents 6e311dfa 337996a4
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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");