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

Skip to content
Commit 68eed418 authored by Ben Murdoch's avatar Ben Murdoch
Browse files

Make ModifierShortcutManager multiuser aware.

Instead of using the cached system user context, we now keep
track of the current foreground user (maintained by PhoneWindowManager)
and use that user to resolve Roles and PackageManager queries. This
means that we will resolve the correct application launch intents for
the appropriate user.

This is especially important in HSUM builds, where the system user is
never the foreground user and so roles would never resolve correctly.

Flag: com.android.server.flags.modifier_shortcut_manager_multiuser
Bug: 351963350
Test: atest ModifierShortcutManagerTests ModifierShortcutTests

Change-Id: I98d70ebd1f067d27df52275bf82517fab1473ec8
parent 187ee73b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment