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

Commit f0847871 authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

If services are enabled, services might become enabled in the future

Hence we always, always want to start a session if this is requested.

Bug: 27643066
Change-Id: I0fbf3ea8554de83d5ec6dc61b6b36f3783aab427
parent 2c4c90d2
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;