summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2020-05-15 16:05:23 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2020-05-15 16:05:23 +0000
commit4b18bca10ff0cf64c40b137c46cae966d309e296 (patch)
treeec1b7f6219cb71a6a266ed71aaed05b6c6b822cd
parent776cde5befb8e8e863f92f51e8883908dae07fd1 (diff)
parentea3b0cc39297304cfef0d90a2d81603e4e45ba62 (diff)
Merge "Resurrect app prediciton sessions after destroy and rebind" into rvc-dev am: 103aed340e am: ca75e3f2df am: ea3b0cc392
Change-Id: I7b5e77f8810544e422890df9589fd9472c9139a8
-rw-r--r--services/appprediction/java/com/android/server/appprediction/AppPredictionPerUserService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/appprediction/java/com/android/server/appprediction/AppPredictionPerUserService.java b/services/appprediction/java/com/android/server/appprediction/AppPredictionPerUserService.java
index fdc5f810db22..103151dcdda5 100644
--- a/services/appprediction/java/com/android/server/appprediction/AppPredictionPerUserService.java
+++ b/services/appprediction/java/com/android/server/appprediction/AppPredictionPerUserService.java
@@ -267,6 +267,9 @@ public class AppPredictionPerUserService extends
mRemoteService.destroy();
mRemoteService = null;
+ synchronized (mLock) {
+ mZombie = true;
+ }
mRemoteService = getRemoteServiceLocked();
if (mRemoteService != null) {
if (isDebug()) {