am c04aa87e
: Merge "Fix incorrent page range parsing when custom print options used." into klp-dev
* commit 'c04aa87e4ac41b6c65dceb7b20d7a7f92c2efec1': Fix incorrent page range parsing when custom print options used.
This commit is contained in:
@ -1529,9 +1529,13 @@ public class PrintJobConfigActivity extends Activity {
|
|||||||
builder.append(',');
|
builder.append(',');
|
||||||
}
|
}
|
||||||
PageRange pageRange = pageRanges[i];
|
PageRange pageRange = pageRanges[i];
|
||||||
builder.append(pageRange.getStart());
|
final int shownStartPage = pageRange.getStart() + 1;
|
||||||
builder.append('-');
|
final int shownEndPage = pageRange.getEnd() + 1;
|
||||||
builder.append(pageRange.getEnd());
|
builder.append(shownStartPage);
|
||||||
|
if (shownStartPage != shownEndPage) {
|
||||||
|
builder.append('-');
|
||||||
|
builder.append(shownEndPage);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
mPageRangeEditText.setText(builder.toString());
|
mPageRangeEditText.setText(builder.toString());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user