summaryrefslogtreecommitdiffstats
path: root/packages/PrintSpooler/src
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2014-09-23 16:22:42 -0700
committerSvetoslav <svetoslavganov@google.com>2014-09-23 16:25:54 -0700
commit56683481381003325481143af15d519c1bf0148f (patch)
tree1bd68914d98ef39862fd9097bfbaab17d102cddc /packages/PrintSpooler/src
parentdef101127a3ad0a65eb1c3ef53e9f41c4d6be5d2 (diff)
downloadframeworks_base-56683481381003325481143af15d519c1bf0148f.zip
frameworks_base-56683481381003325481143af15d519c1bf0148f.tar.gz
frameworks_base-56683481381003325481143af15d519c1bf0148f.tar.bz2
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
Diffstat (limited to 'packages/PrintSpooler/src')
-rw-r--r--packages/PrintSpooler/src/com/android/printspooler/ui/PrintActivity.java1
1 files changed, 1 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 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();
}
}