diff options
| author | Kurtis Schlepp <mopriadevteam@gmail.com> | 2020-12-13 17:05:58 -0800 |
|---|---|---|
| committer | Kurtis Schlepp <mopriadevteam@gmail.com> | 2021-04-20 17:49:33 -0700 |
| commit | 0bdbcc479c9459386d08b099cfdef3cb1242b86c (patch) | |
| tree | fbea5c7e8e6a9f60544fa2d8303608c865fe4227 /core/java/android | |
| parent | d746cc814f793988880b9bd9fb80aa1f8b4c0bbd (diff) | |
Add Japanese Photo L size
L size media is very common in Japan, as listed at
https://en.wikipedia.org/wiki/Photo_print_sizes. DPS and other
print services must add their own definitions of this popular size.
Including it in PrintAttributes will allow other software to
leverage it instead of re-defining it, leading to a more consistent
experience in the future.
Test: L is present in API
Change-Id: I7022881846d1bf46bda80b4825c5cba01b794821
Signed-off-by: Glade Diviney <mopriadevteam@gmail.com>
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/print/PrintAttributes.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/print/PrintAttributes.java b/core/java/android/print/PrintAttributes.java index e607ced63393..62d5d78a7f1e 100644 --- a/core/java/android/print/PrintAttributes.java +++ b/core/java/android/print/PrintAttributes.java @@ -792,6 +792,10 @@ public final class PrintAttributes implements Parcelable { public static final MediaSize JPN_YOU4 = new MediaSize("JPN_YOU4", "android", R.string.mediasize_japanese_you4, 4134, 9252); + /** Japanese Photo L media size: 89mm x 127mm (3.5 x 5") */ + public static final @NonNull MediaSize OE_PHOTO_L = + new MediaSize("OE_PHOTO_L", "android", + R.string.mediasize_japanese_l, 3500, 5000); private final @NonNull String mId; /**@hide */ |
