summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Winson Chung <winsonc@google.com> 2018-07-30 16:11:38 -0700
committer Winson Chung <winsonc@google.com> 2018-07-30 23:33:59 +0000
commite7cb0c1a23053f3a02b4f605f2201cf5686d2d64 (patch)
tree0f5166fc7f2a0690c556c0b21db701879bbeb926
parenta81d70742f92628f9ffc1c0e8bd295ec51fc3227 (diff)
Don't keep launcher service continously bound in the foreground
Bug: 110362634 Test: Ensure swipe up still works Change-Id: Id59d0f89032eb9c3e9c26333e11bc5702ac3d7ce
-rw-r--r--packages/SystemUI/src/com/android/systemui/OverviewProxyService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java
index 4bb4c24638b9..3c44eb42ffca 100644
--- a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java
+++ b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java
@@ -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);