Merge "The callbacks for tracking a printer called more than once without printer change." into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3cccec4c6e
@ -254,6 +254,9 @@ public class FusedPrintersProvider extends Loader<List<PrinterInfo>> {
|
||||
if (isStarted() && mDiscoverySession != null
|
||||
&& mDiscoverySession.isPrinterDiscoveryStarted()) {
|
||||
if (mTrackedPrinter != null) {
|
||||
if (mTrackedPrinter.equals(printerId)) {
|
||||
return;
|
||||
}
|
||||
mDiscoverySession.stopPrinterStateTracking(mTrackedPrinter);
|
||||
}
|
||||
mTrackedPrinter = printerId;
|
||||
|
Reference in New Issue
Block a user