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

Commit b34556df authored by Yoshiki Iguchi's avatar Yoshiki Iguchi Committed by Android (Google) Code Review
Browse files

Merge "Don't fire 'changed' event if printer list is not updated"

parents 32a6ad5a 4465f55d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -232,6 +232,11 @@ public final class FusedPrintersProvider extends Loader<List<PrinterInfo>>
        // Add the new printers, i.e. what is left.
        printers.addAll(discoveredPrinters.values());

        // Do nothing if the printer list is not changed.
        if (Objects.equals(mPrinters, printers)) {
            return;
        }

        // Update the list of printers.
        mPrinters.clear();
        mPrinters.addAll(printers);