Deference mAppPredictor on destroy

Bug: 159731946
Test: manual
Change-Id: If2bce9cdb8ff2cc96e78003a30b105c348b6e506
This commit is contained in:
Pinyao Ting
2020-06-25 16:42:54 -07:00
parent 38c2ca7698
commit 023c4e9234

View File

@@ -885,6 +885,7 @@ public class ChooserListAdapter extends ResolverListAdapter {
if (getAppPredictor() != null) {
getAppPredictor().unregisterPredictionUpdates(mAppPredictorCallback);
getAppPredictor().destroy();
setAppPredictor(null);
}
}