Use Context.BIND_SCHEDULE_LIKE_TOP_APP when binding to the TextToSpeechService. am: b7d0aca920 am: 7615ddc544
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21993448 Change-Id: I6d97d61540359e5831314d1030aefab449aeb4d6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user