Loading packages/PrintSpooler/src/com/android/printspooler/ui/FusedPrintersProvider.java +6 −3 Original line number Original line Diff line number Diff line Loading @@ -267,9 +267,12 @@ public final class FusedPrintersProvider extends Loader<List<PrinterInfo>> // The contract is that if we already have a valid, // The contract is that if we already have a valid, // result the we have to deliver it immediately. // 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)); deliverResult(new ArrayList<>(mPrinters)); } } }); // Always load the data to ensure discovery period is // Always load the data to ensure discovery period is // started and to make sure obsolete printers are updated. // started and to make sure obsolete printers are updated. onForceLoad(); onForceLoad(); Loading Loading
packages/PrintSpooler/src/com/android/printspooler/ui/FusedPrintersProvider.java +6 −3 Original line number Original line Diff line number Diff line Loading @@ -267,9 +267,12 @@ public final class FusedPrintersProvider extends Loader<List<PrinterInfo>> // The contract is that if we already have a valid, // The contract is that if we already have a valid, // result the we have to deliver it immediately. // 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)); deliverResult(new ArrayList<>(mPrinters)); } } }); // Always load the data to ensure discovery period is // Always load the data to ensure discovery period is // started and to make sure obsolete printers are updated. // started and to make sure obsolete printers are updated. onForceLoad(); onForceLoad(); Loading