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

Commit ff888daf authored by Fabian Kozynski's avatar Fabian Kozynski
Browse files

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
parent c1a2db23
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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;