am 3cccec4c
: Merge "The callbacks for tracking a printer called more than once without printer change." into klp-dev
* commit '3cccec4c6eb9f8494b777cbb1b0e45db80974ac8': The callbacks for tracking a printer called more than once without printer change.
This commit is contained in:
@ -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