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

Commit ffdf8250 authored by Roman Birg's avatar Roman Birg
Browse files

PhoneWinowManager: resolve home car intent



We can't launch the resolver activity directly if there is more than one
app on the device that wants to launch the intent.

Ref: CYNGNOS-715

Change-Id: I47d1ec2f2e1d4fce9e1be671c7af2bd4870359b1
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 4bb1dfe5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -6887,7 +6887,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        ActivityInfo ai = null;
        ResolveInfo info = mContext.getPackageManager().resolveActivityAsUser(
                intent,
                PackageManager.MATCH_DEFAULT_ONLY | PackageManager.GET_META_DATA,
                PackageManager.MATCH_DEFAULT_ONLY
                        | PackageManager.GET_META_DATA
                        | PackageManager.GET_RESOLVED_FILTER,
                mCurrentUserId);
        if (info != null) {
            ai = info.activityInfo;