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

Commit 64e61d78 authored by Rhed Jao's avatar Rhed Jao
Browse files

Fix incorrect user id when applying default preferred activity

Bug: 187342358
Test: atest PackageManagerTest
Test: atest CtsDevicePolicyTestCases
Change-Id: I79bc03fccc09ccbee58334c55fdada833bafeac9
parent 5c18fc3e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3288,7 +3288,7 @@ public final class Settings implements Watchable, Snappable {
            IntentFilter.AuthorityEntry auth, PatternMatcher path, int userId) {
        final List<ResolveInfo> ri =
                pmInternal.queryIntentActivities(
                        intent, intent.getType(), flags, Binder.getCallingUid(), 0);
                        intent, intent.getType(), flags, Binder.getCallingUid(), userId);
        if (PackageManagerService.DEBUG_PREFERRED) {
            Log.d(TAG, "Queried " + intent + " results: " + ri);
        }