summaryrefslogtreecommitdiffstats
path: root/packages/PrintSpooler/src
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2014-09-16 20:48:15 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-09-16 20:48:16 +0000
commite9f275d309bfe314921dba51dd7c90686f2748bf (patch)
tree26c30178d5c970da118e14f709587497b16888e2 /packages/PrintSpooler/src
parent915a666c21284a4f75033c809d3953e1b37ac549 (diff)
parentd724a40136f168251f6f62e5a51ad73bf8fe5d1e (diff)
downloadframeworks_base-e9f275d309bfe314921dba51dd7c90686f2748bf.zip
frameworks_base-e9f275d309bfe314921dba51dd7c90686f2748bf.tar.gz
frameworks_base-e9f275d309bfe314921dba51dd7c90686f2748bf.tar.bz2
Merge "Print preview disappearing on screen off/on." into lmp-dev
Diffstat (limited to 'packages/PrintSpooler/src')
-rw-r--r--packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java b/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java
index 3985285..389988a 100644
--- a/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java
+++ b/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java
@@ -312,6 +312,14 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat
}
@Override
+ public void onResume() {
+ super.onResume();
+ if (mState != STATE_INITIALIZING && mCurrentPrinter != null) {
+ mPrinterRegistry.setTrackedPrinter(mCurrentPrinter.getId());
+ }
+ }
+
+ @Override
public void onPause() {
PrintSpoolerService spooler = mSpoolerProvider.getSpooler();
@@ -347,6 +355,7 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat
}
mPrinterAvailabilityDetector.cancel();
+ mPrinterRegistry.setTrackedPrinter(null);
super.onPause();
}