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

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

Merge "Update printers even if there are no printers found." into nyc-dev

am: c7927cb6

* commit 'c7927cb6':
  Update printers even if there are no printers found.
parents 0e3486f1 c7927cb6
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -267,9 +267,12 @@ public final class FusedPrintersProvider extends Loader<List<PrinterInfo>>

        // The contract is that if we already have a valid,
        // result the we have to deliver it immediately.
        if (!mPrinters.isEmpty()) {
        (new Handler(Looper.getMainLooper())).post(new Runnable() {
            @Override public void run() {
                deliverResult(new ArrayList<>(mPrinters));
            }
        });

        // Always load the data to ensure discovery period is
        // started and to make sure obsolete printers are updated.
        onForceLoad();