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

Commit e7cb0c1a authored by Winson Chung's avatar Winson Chung
Browse files

Don't keep launcher service continously bound in the foreground

Bug: 110362634
Test: Ensure swipe up still works

Change-Id: Id59d0f89032eb9c3e9c26333e11bc5702ac3d7ce
parent a81d7074
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -340,7 +340,8 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis
        boolean bound = false;
        try {
            bound = mContext.bindServiceAsUser(launcherServiceIntent,
                    mOverviewServiceConnection, Context.BIND_AUTO_CREATE,
                    mOverviewServiceConnection,
                    Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE_WHILE_AWAKE,
                    UserHandle.of(mDeviceProvisionedController.getCurrentUser()));
        } catch (SecurityException e) {
            Log.e(TAG_OPS, "Unable to bind because of security error", e);