diff options
| author | Svetoslav <svetoslavganov@google.com> | 2014-03-14 16:27:55 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-14 16:27:55 +0000 |
| commit | 358eaa7825140ee571a7b9d61705fb3adb5b60aa (patch) | |
| tree | 214fce3f3fb307350b5588da23dc96c249e2ebcb /core/java/android | |
| parent | 70a0ea0e8de981a2a0c3fb296718256a2355ee2d (diff) | |
| parent | fc1d04714e9042a1b01c7a725fafa1820b8c14fb (diff) | |
am fc1d0471: am 11b7d9fa: Merge "PrintSpooler crash if printer is reported to have only one color mode." into klp-dev
* commit 'fc1d04714e9042a1b01c7a725fafa1820b8c14fb':
PrintSpooler crash if printer is reported to have only one color mode.
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/print/PrinterCapabilitiesInfo.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/print/PrinterCapabilitiesInfo.java b/core/java/android/print/PrinterCapabilitiesInfo.java index b615600d33ae..806a89d8481f 100644 --- a/core/java/android/print/PrinterCapabilitiesInfo.java +++ b/core/java/android/print/PrinterCapabilitiesInfo.java @@ -475,6 +475,12 @@ public final class PrinterCapabilitiesInfo implements Parcelable { * @param colorModes The color mode bit mask. * @param defaultColorMode The default color mode. * @return This builder. + * <p> + * <strong>Note:</strong> On platform version 19 (Kitkat) specifying + * only PrintAttributes#COLOR_MODE_MONOCHROME leads to a print spooler + * crash. Hence, you should declare either both color modes or + * PrintAttributes#COLOR_MODE_COLOR. + * </p> * * @throws IllegalArgumentException If color modes contains an invalid * mode bit or if the default color mode is invalid. |
