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

Commit 9a7bd847 authored by Matt Pietal's avatar Matt Pietal
Browse files

Controls - Reduce binding priority

Discussions with framework team led to addition of the
BIND_NOT_PERCEPTIBLE flag, which will help release the service when
the system is under memory pressure.

Fixes: 158771014
Test: manual
Change-Id: I58b25dd23dba88fbd9e5f9e3ad0a052cccd39d21
parent 3758432a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -76,7 +76,8 @@ class ControlsProviderLifecycleManager(
        private const val LOAD_TIMEOUT_SECONDS = 20L // seconds
        private const val MAX_BIND_RETRIES = 5
        private const val DEBUG = true
        private val BIND_FLAGS = Context.BIND_AUTO_CREATE or Context.BIND_FOREGROUND_SERVICE
        private val BIND_FLAGS = Context.BIND_AUTO_CREATE or Context.BIND_FOREGROUND_SERVICE or
            Context.BIND_NOT_PERCEPTIBLE
    }

    private val intent = Intent().apply {