diff options
author | Svetoslav <svetoslavganov@google.com> | 2014-09-16 20:48:15 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-09-16 20:48:16 +0000 |
commit | e9f275d309bfe314921dba51dd7c90686f2748bf (patch) | |
tree | 26c30178d5c970da118e14f709587497b16888e2 /packages | |
parent | 915a666c21284a4f75033c809d3953e1b37ac549 (diff) | |
parent | d724a40136f168251f6f62e5a51ad73bf8fe5d1e (diff) | |
download | frameworks_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')
-rw-r--r-- | packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java | 9 |
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(); } |