summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
+ }
}
}