diff options
author | Dave Langemak <dlangemak@google.com> | 2013-11-19 08:43:18 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-11-19 08:43:18 -0800 |
commit | d487eb3c03542ce7068d64c2c9c3625c740f26e0 (patch) | |
tree | 33bd5f9fd0b0ad4d6d9dbffd7db3ff55164901e0 /packages/PrintSpooler | |
parent | a857baf96c836eac0229ddc2451b270abb5efeae (diff) | |
parent | 741c9c74ffead322c349242e3f72e8fd2957bd3d (diff) | |
download | frameworks_base-d487eb3c03542ce7068d64c2c9c3625c740f26e0.zip frameworks_base-d487eb3c03542ce7068d64c2c9c3625c740f26e0.tar.gz frameworks_base-d487eb3c03542ce7068d64c2c9c3625c740f26e0.tar.bz2 |
am 741c9c74: am d220d820: am c04aa87e: Merge "Fix incorrent page range parsing when custom print options used." into klp-dev
* commit '741c9c74ffead322c349242e3f72e8fd2957bd3d':
Fix incorrent page range parsing when custom print options used.
Diffstat (limited to 'packages/PrintSpooler')
-rw-r--r-- | packages/PrintSpooler/src/com/android/printspooler/PrintJobConfigActivity.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/PrintSpooler/src/com/android/printspooler/PrintJobConfigActivity.java b/packages/PrintSpooler/src/com/android/printspooler/PrintJobConfigActivity.java index 88403a3..c1c7a4e 100644 --- a/packages/PrintSpooler/src/com/android/printspooler/PrintJobConfigActivity.java +++ b/packages/PrintSpooler/src/com/android/printspooler/PrintJobConfigActivity.java @@ -1529,9 +1529,13 @@ public class PrintJobConfigActivity extends Activity { builder.append(','); } PageRange pageRange = pageRanges[i]; - builder.append(pageRange.getStart()); - builder.append('-'); - builder.append(pageRange.getEnd()); + final int shownStartPage = pageRange.getStart() + 1; + final int shownEndPage = pageRange.getEnd() + 1; + builder.append(shownStartPage); + if (shownStartPage != shownEndPage) { + builder.append('-'); + builder.append(shownEndPage); + } } mPageRangeEditText.setText(builder.toString()); } |