summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jing Ji <jji@google.com> 2021-05-28 01:35:24 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-05-28 01:35:24 +0000
commite6436d95f8b31d793cc47e32a9c5969b04e19242 (patch)
tree1aa92df1ab11fe531d7522c3a813c3159934c52a
parent10102d8e2547be81d947bdc64ff1353d595747af (diff)
parent980dc5ae12fe8cd3af0e6731bc3e8c686bdcee87 (diff)
Merge "Don't call onNullBinding when the service host is dead" into sc-dev
-rw-r--r--core/java/android/app/LoadedApk.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/core/java/android/app/LoadedApk.java b/core/java/android/app/LoadedApk.java
index 90a6f32b2344..62b5ec872320 100644
--- a/core/java/android/app/LoadedApk.java
+++ b/core/java/android/app/LoadedApk.java
@@ -2060,13 +2060,14 @@ public final class LoadedApk {
}
if (dead) {
mConnection.onBindingDied(name);
- }
- // If there is a new viable service, it is now connected.
- if (service != null) {
- mConnection.onServiceConnected(name, service);
} else {
- // The binding machinery worked, but the remote returned null from onBind().
- mConnection.onNullBinding(name);
+ // If there is a new viable service, it is now connected.
+ if (service != null) {
+ mConnection.onServiceConnected(name, service);
+ } else {
+ // The binding machinery worked, but the remote returned null from onBind().
+ mConnection.onNullBinding(name);
+ }
}
}