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