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

Commit b7d0aca9 authored by Rakesh Iyer's avatar Rakesh Iyer
Browse files

Use Context.BIND_SCHEDULE_LIKE_TOP_APP when binding to the TextToSpeechService.

Bug: 266132000
Test: Verified TTS latency goes down.
Change-Id: Ie805f0be527336463656e6af81376b022e16a306
parent 019c9286
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@ final class TextToSpeechManagerPerUserService extends
                ITextToSpeechSessionCallback callback) {
            super(context,
                    new Intent(TextToSpeech.Engine.INTENT_ACTION_TTS_SERVICE).setPackage(engine),
                    Context.BIND_AUTO_CREATE,
                    Context.BIND_AUTO_CREATE | Context.BIND_SCHEDULE_LIKE_TOP_APP,
                    userId,
                    ITextToSpeechService.Stub::asInterface);
            mEngine = engine;