diff options
| author | 2018-02-01 16:54:16 -0800 | |
|---|---|---|
| committer | 2018-02-01 16:56:45 -0800 | |
| commit | 09e6fbde5013f30c5075af3ed7bea28d6cb62918 (patch) | |
| tree | 9fddca962079cba98d9e263dba9f06ccf0675bac | |
| parent | 7902b4a1b222cac1f60125de93a1ab30a0b7523f (diff) | |
Fixes overview connecting to correct launcher when changing users
When switching users, it would always connect to the system user's
launcher because the user was gained incorrectly so the new user would
lose its recents button and other issues may occur. Getting the actual
user fixes it to connect to the current user's launcher.
Bug: 67957962
Test: change users
Change-Id: If49b9bea3920242c2653913b127ac65a16c13b92
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/OverviewProxyService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java index 8d8b726f8fa8..b7e1d67a5b3a 100644 --- a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java +++ b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java @@ -199,7 +199,7 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis launcherServiceIntent.setComponent(mLauncherComponentName); boolean bound = mContext.bindServiceAsUser(launcherServiceIntent, mOverviewServiceConnection, Context.BIND_AUTO_CREATE, - UserHandle.getUserHandleForUid(mDeviceProvisionedController.getCurrentUser())); + UserHandle.of(mDeviceProvisionedController.getCurrentUser())); if (!bound) { // Retry after exponential backoff timeout final long timeoutMs = (long) Math.scalb(BACKOFF_MILLIS, mConnectionBackoffAttempts); |