Merge "Try to finish data delivery in onDestroy for RecognitionService" into sc-dev am: 0a62adda9c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15160190 Change-Id: I1ccc67075ac3dd6342be818ab3a4c00747bf8881
This commit is contained in:
@@ -259,6 +259,7 @@ public abstract class RecognitionService extends Service {
|
|||||||
@Override
|
@Override
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
if (DBG) Log.d(TAG, "onDestroy");
|
if (DBG) Log.d(TAG, "onDestroy");
|
||||||
|
finishDataDelivery();
|
||||||
mCurrentCallback = null;
|
mCurrentCallback = null;
|
||||||
mBinder.clearReference();
|
mBinder.clearReference();
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
|||||||
Reference in New Issue
Block a user