Adding allowBlocking override to getBinder call

Test: Manually tested

Change-Id: Ib50060ae6a13ada6169a613a3c604a39151c5279
This commit is contained in:
Josh Imbriani
2020-01-16 15:02:16 -08:00
parent 856ce4a17d
commit e1bef18ba6

View File

@@ -1259,6 +1259,7 @@ public abstract class TextToSpeechService extends Service {
@Override
public IBinder onBind(Intent intent) {
if (TextToSpeech.Engine.INTENT_ACTION_TTS_SERVICE.equals(intent.getAction())) {
Binder.allowBlocking(mBinder.asBinder());
return mBinder;
}
return null;