Do not count print jobs if printing is not available.
am: 24264eb250
* commit '24264eb2508d54de473b00b934807d2a0881b0aa':
Do not count print jobs if printing is not available.
This commit is contained in:
@@ -605,6 +605,7 @@ public class PrintSettingsFragment extends ProfileSettingsPreferenceFragment
|
||||
|
||||
@Override
|
||||
public void setListening(boolean isListening) {
|
||||
if (mPrintManager != null) {
|
||||
if (isListening) {
|
||||
mPrintManager.addPrintJobStateChangeListener(this);
|
||||
onPrintJobStateChanged(null);
|
||||
@@ -612,6 +613,7 @@ public class PrintSettingsFragment extends ProfileSettingsPreferenceFragment
|
||||
mPrintManager.removePrintJobStateChangeListener(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPrintJobStateChanged(PrintJobId printJobId) {
|
||||
|
||||
Reference in New Issue
Block a user