Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 980dc5ae authored by Jing Ji's avatar Jing Ji
Browse files

Don't call onNullBinding when the service host is dead

Bug: 189038850
Test: atest CtsAppTestCases
Change-Id: I8bcdaf545ee8ca46327fc25c14d9821e288600a4
parent 87d4c9a9
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -2056,7 +2056,7 @@ public final class LoadedApk {
            }
            if (dead) {
                mConnection.onBindingDied(name);
            }
            } else {
                // If there is a new viable service, it is now connected.
                if (service != null) {
                    mConnection.onServiceConnected(name, service);
@@ -2065,6 +2065,7 @@ public final class LoadedApk {
                    mConnection.onNullBinding(name);
                }
            }
        }

        public void doDeath(ComponentName name, IBinder service) {
            synchronized (this) {