Use Context.BIND_SCHEDULE_LIKE_TOP_APP when binding to the TextToSpeechService. am: b7d0aca920

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21993448

Change-Id: I5beb6679e45136caf405ba86f2ae535989fcb5fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Rakesh Iyer
2023-03-19 10:13:07 +00:00
committed by Automerger Merge Worker

View File

@@ -95,7 +95,7 @@ final class TextToSpeechManagerPerUserService extends
ITextToSpeechSessionCallback callback) { ITextToSpeechSessionCallback callback) {
super(context, super(context,
new Intent(TextToSpeech.Engine.INTENT_ACTION_TTS_SERVICE).setPackage(engine), 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, userId,
ITextToSpeechService.Stub::asInterface); ITextToSpeechService.Stub::asInterface);
mEngine = engine; mEngine = engine;