diff options
author | lingyan.wang <lingyan.wang@ck-telecom.com> | 2015-04-21 19:32:55 +0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-10-26 21:55:37 -0700 |
commit | 4f0ec345abdbc360fa7d4836ddaf3c22e5835be6 (patch) | |
tree | 43cef1388a4a28ecb42dbcd3b7a5d03346f30287 /packages/PrintSpooler | |
parent | 2a5da8b3ab581637cf79feff3dbf749a4f9a827f (diff) | |
download | frameworks_base-4f0ec345abdbc360fa7d4836ddaf3c22e5835be6.zip frameworks_base-4f0ec345abdbc360fa7d4836ddaf3c22e5835be6.tar.gz frameworks_base-4f0ec345abdbc360fa7d4836ddaf3c22e5835be6.tar.bz2 |
printspooler: Print view crash.
1.put a txt file into device.
2.Go to File Manager->long press the txt file->Print->Long press home key->Clear all
3.Go to File Manager->long press the txt file->Print
The result: Print view crash.
Change-Id: I46a71b8e1196f69b6b40f38b418a88d794918429
Diffstat (limited to 'packages/PrintSpooler')
-rw-r--r-- | packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java | 6 |
1 files changed, 6 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 e8a5e43..1b58eba 100644 --- a/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java +++ b/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java @@ -371,6 +371,12 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat } @Override + protected void onDestroy() { + doFinish(); + super.onDestroy(); + } + + @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { event.startTracking(); |