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

Commit f644858b authored by Roman Birg's avatar Roman Birg Committed by Ricardo Cerqueira
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>
(cherry picked from commit ffdf8250)
parent 4e1902a0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -6831,7 +6831,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;