summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2013-10-04 16:50:53 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-10-04 16:50:53 +0000
commit6bf1029900d09d0432fb82f8c076bdb3eefc1f6c (patch)
tree0e47c108f20f544f750a84361807c1485ddcf65d /packages
parent2d94c57345ba3e837ef780de9dae172c3abd5ae8 (diff)
parent2b40c83ae1ec17ea9371c3fd3ac6c79c156faa1d (diff)
downloadframeworks_base-6bf1029900d09d0432fb82f8c076bdb3eefc1f6c.zip
frameworks_base-6bf1029900d09d0432fb82f8c076bdb3eefc1f6c.tar.gz
frameworks_base-6bf1029900d09d0432fb82f8c076bdb3eefc1f6c.tar.bz2
Merge "Deleting print job files when we do not have to." into klp-dev
Diffstat (limited to 'packages')
-rw-r--r--packages/PrintSpooler/src/com/android/printspooler/PrintSpoolerService.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/PrintSpooler/src/com/android/printspooler/PrintSpoolerService.java b/packages/PrintSpooler/src/com/android/printspooler/PrintSpoolerService.java
index d1d71cd..d1b42bc 100644
--- a/packages/PrintSpooler/src/com/android/printspooler/PrintSpoolerService.java
+++ b/packages/PrintSpooler/src/com/android/printspooler/PrintSpoolerService.java
@@ -440,8 +440,9 @@ public final class PrintSpoolerService extends Service {
if (fileForJobMap == null) {
fileForJobMap = new ArrayMap<PrintJobId, File>();
}
- String printJobIdString = file.getName().substring(0,
- PRINT_JOB_FILE_PREFIX.length());
+ String printJobIdString = file.getName().substring(
+ PRINT_JOB_FILE_PREFIX.length(),
+ file.getName().indexOf('.'));
PrintJobId printJobId = PrintJobId.unflattenFromString(
printJobIdString);
fileForJobMap.put(printJobId, file);