Merge "Avoid onServiceDisconnected() for unbind Service"
This commit is contained in:
@@ -705,11 +705,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>> {
|
||||||
|
|||||||
Reference in New Issue
Block a user