diff options
author | Svetoslav Ganov <svetoslavganov@google.com> | 2013-10-04 16:50:53 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-10-04 16:50:53 +0000 |
commit | 6bf1029900d09d0432fb82f8c076bdb3eefc1f6c (patch) | |
tree | 0e47c108f20f544f750a84361807c1485ddcf65d /packages | |
parent | 2d94c57345ba3e837ef780de9dae172c3abd5ae8 (diff) | |
parent | 2b40c83ae1ec17ea9371c3fd3ac6c79c156faa1d (diff) | |
download | frameworks_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.java | 5 |
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); |