From 56683481381003325481143af15d519c1bf0148f Mon Sep 17 00:00:00 2001 From: Svetoslav Date: Tue, 23 Sep 2014 16:22:42 -0700 Subject: Fix ANR in print spooler. Saving to PDF a subset of the pages requires trimming the undesired pages and when this is done writing the ready doc to a URI. To write the file to URI we have to obtain it but it is aquired by the shredding task and never released. Now we are releasing the document immediately after trimming it. bug:17631301 Change-Id: I4db7966c65c75f0f14c3cb52fd83b4d8fd5a4687 --- packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java b/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java index 56497d7..8728b87 100644 --- a/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java +++ b/packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java @@ -2393,6 +2393,7 @@ public class PrintActivity extends Activity implements RemotePrintDocument.Updat if (tempFile != null) { tempFile.delete(); } + mFileProvider.releaseFile(); } } -- cgit v1.1