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

Commit d9db81bb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Reconnect service when disconnected by launcher reinstall"

parents 7cd3fa6f eb6893b4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis
    private final IBinder.DeathRecipient mOverviewServiceDeathRcpt = new IBinder.DeathRecipient() {
        @Override
        public void binderDied() {
            mOverviewProxy = null;
            startConnectionToCurrentUser();
        }
    };

@@ -167,6 +167,7 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis

    private void disconnectFromLauncherService() {
        if (mOverviewProxy != null) {
            mOverviewProxy.asBinder().unlinkToDeath(mOverviewServiceDeathRcpt, 0);
            mContext.unbindService(mOverviewServiceConnection);
            mOverviewProxy = null;
            notifyConnectionChanged();