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

Commit bc84b89a authored by Philip P. Moltmann's avatar Philip P. Moltmann Committed by Android (Google) Code Review
Browse files

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

parents 5849f201 f0847871
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;