From 4f0ec345abdbc360fa7d4836ddaf3c22e5835be6 Mon Sep 17 00:00:00 2001 From: "lingyan.wang" Date: Tue, 21 Apr 2015 19:32:55 +0800 Subject: 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 --- .../PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'packages/PrintSpooler') 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(); -- cgit v1.1