mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1049217 - Follow-up: remove modern Android method calls until Bug 1042829 lands. a=bustage on a CLOSED TREE
This commit is contained in:
parent
9f26e282ea
commit
8aeabb2c45
@ -63,7 +63,10 @@ public class LocaleListPreference extends ListPreference {
|
||||
private static byte[] getPixels(final Bitmap b) {
|
||||
final int byteCount;
|
||||
if (Versions.feature19Plus) {
|
||||
byteCount = b.getAllocationByteCount();
|
||||
// TODO: when Bug 1042829 lands, do the right thing for KitKat devices.
|
||||
// Which is:
|
||||
// byteCount = b.getAllocationByteCount();
|
||||
byteCount = b.getRowBytes() * b.getHeight();
|
||||
} else {
|
||||
// Close enough for government work.
|
||||
// Equivalent to getByteCount, but works on <12.
|
||||
|
Loading…
Reference in New Issue
Block a user