Use Context.BIND_SCHEDULE_LIKE_TOP_APP when binding to the TextToSpeechService. am: b7d0aca920 am: 7615ddc544 am: 21f7408abe
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21993448 Change-Id: I9fbf1d5793ffb2e3dbd21cb19ad32b130f265360 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