Merge "Always call back when printer changes" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f1e9d52fd8
@@ -231,11 +231,6 @@ public final class FusedPrintersProvider extends Loader<List<PrinterInfo>>
|
|||||||
// Add the new printers, i.e. what is left.
|
// Add the new printers, i.e. what is left.
|
||||||
printers.addAll(discoveredPrinters.values());
|
printers.addAll(discoveredPrinters.values());
|
||||||
|
|
||||||
// Do nothing if the printer list is not changed.
|
|
||||||
if (Objects.equals(mPrinters, printers)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update the list of printers.
|
// Update the list of printers.
|
||||||
mPrinters.clear();
|
mPrinters.clear();
|
||||||
mPrinters.addAll(printers);
|
mPrinters.addAll(printers);
|
||||||
|
|||||||
Reference in New Issue
Block a user