From ff888daf91530a3869687ea781987d5a9570171c Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Mon, 1 Jul 2019 12:50:03 -0400 Subject: [PATCH] Add BIND_WAIVE_PRIORITY for TileService Fixes: 135148304 Test: build Test: Grayscale tile works Test: TileService is re-bound after "adb shell am force-stop" Test: atest TileLifecycleManagerTest Change-Id: Ib102cc9bd669acedf627960a2819fe8bc615b84b --- .../android/systemui/qs/external/TileLifecycleManager.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/qs/external/TileLifecycleManager.java b/packages/SystemUI/src/com/android/systemui/qs/external/TileLifecycleManager.java index b135f7b27c3ff..effea6a877b85 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/external/TileLifecycleManager.java +++ b/packages/SystemUI/src/com/android/systemui/qs/external/TileLifecycleManager.java @@ -159,8 +159,11 @@ public class TileLifecycleManager extends BroadcastReceiver implements mBindTryCount++; try { mIsBound = mContext.bindServiceAsUser(mIntent, this, - Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE_WHILE_AWAKE - | Context.BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS, mUser); + Context.BIND_AUTO_CREATE + | Context.BIND_FOREGROUND_SERVICE_WHILE_AWAKE + | Context.BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS + | Context.BIND_WAIVE_PRIORITY, + mUser); } catch (SecurityException e) { Log.e(TAG, "Failed to bind to service", e); mIsBound = false;