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

Commit c38e0f19 authored by Gopal Krishna Shukla's avatar Gopal Krishna Shukla Committed by android-build-merger
Browse files

Merge "Avoid onServiceDisconnected() for unbind Service"

am: a37c2522

Change-Id: I825afa6ce1a341f37687fb453a1eeda1ad19ae86
parents a36d57b7 a37c2522
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -708,11 +708,13 @@ final class RemotePrintSpooler {
        @Override
        @Override
        public void onServiceDisconnected(ComponentName name) {
        public void onServiceDisconnected(ComponentName name) {
            synchronized (mLock) {
            synchronized (mLock) {
                if (mRemoteInstance != null) {
                    clearClientLocked();
                    clearClientLocked();
                    mRemoteInstance = null;
                    mRemoteInstance = null;
                }
                }
            }
            }
        }
        }
    }


    private static final class GetPrintJobInfosCaller
    private static final class GetPrintJobInfosCaller
            extends TimedRemoteCaller<List<PrintJobInfo>> {
            extends TimedRemoteCaller<List<PrintJobInfo>> {