summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Winson Chung <winsonc@google.com> 2018-08-02 18:49:51 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2018-08-02 18:49:51 +0000
commitd945c31521de545a42f31c8f32277f6ac129f912 (patch)
treeb2a873651fae953821ff95bcd517f045daf5fe4d
parentab2978b51b45cba1e845ee28b2b5c4c34a760367 (diff)
parente7cb0c1a23053f3a02b4f605f2201cf5686d2d64 (diff)
Merge "Don't keep launcher service continously bound in the foreground"
-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);