OSDN Git Service

Fix incorrent page range parsing when custom print options used.
authorSvetoslav Ganov <svetoslavganov@google.com>
Sat, 16 Nov 2013 05:42:12 +0000 (21:42 -0800)
committerSvetoslav Ganov <svetoslavganov@google.com>
Sat, 16 Nov 2013 05:52:35 +0000 (21:52 -0800)
commit1a85d9fb243aae3750001094aa1514d4303cb3e0
tree9019044fb37e264f2d05b8b668ec49137f49e3f8
parent35aacf2eb325d24c67d01f4dbd706ed26ab9e8c3
Fix incorrent page range parsing when custom print options used.

We have APIs for a print service to declare an activity with custom
print options. In this activity the service can add custom properties
as well as change the standard ones such as pages to print. The ranges
of selected pages from the custom activity was incorrectly parsed
resulting in an off by one error in what is shown to the user and as a
result getting an exception when trying to print.

bug:11719051

Change-Id: Id04c94608178895f1d47381a63133f0eba7645e1
packages/PrintSpooler/src/com/android/printspooler/PrintJobConfigActivity.java