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

Commit f07754b3 authored by Philip P. Moltmann's avatar Philip P. Moltmann Committed by android-build-merger
Browse files

Merge "If services are enabled, services might become enabled in the future" into nyc-dev

am: bc84b89a

* commit 'bc84b89a':
  If services are enabled, services might become enabled in the future
parents 1cf0fa14 bc84b89a
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -443,10 +443,7 @@ final class UserState implements PrintSpoolerCallbacks, PrintServiceCallbacks {
            @Nullable List<PrinterId> printerIds) {
        synchronized (mLock) {
            throwIfDestroyedLocked();
            // No services - nothing to do.
            if (mActiveServices.isEmpty()) {
                return;
            }

            // No session - nothing to do.
            if (mPrinterDiscoverySession == null) {
                return;
@@ -460,10 +457,7 @@ final class UserState implements PrintSpoolerCallbacks, PrintServiceCallbacks {
    public void stopPrinterDiscovery(@NonNull IPrinterDiscoveryObserver observer) {
        synchronized (mLock) {
            throwIfDestroyedLocked();
            // No services - nothing to do.
            if (mActiveServices.isEmpty()) {
                return;
            }

            // No session - nothing to do.
            if (mPrinterDiscoverySession == null) {
                return;