Fix lint: NewApi issues in LocaleListPreference.java

NEW
Unassigned

Status

()

Firefox for Android
General
7 months ago
7 months ago

People

(Reporter: tyu, Unassigned)

Tracking

(Blocks: 1 bug)

55 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 months ago
1 occurrence:

../../../../../../../mobile/android/base/java/org/mozilla/gecko/preferences/LocaleListPreference.java:67: Call requires API level 19 (current min is 15): android.graphics.Bitmap#getAllocationByteCount

  64         private static byte[] getPixels(final Bitmap b) {
  65             final int byteCount;
  66             if (Versions.feature19Plus) {
  67                 byteCount = b.getAllocationByteCount();
  68             } else {
  69                 // Close enough for government work.

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
(Reporter)

Updated

7 months ago
Blocks: 1218477
You need to log in before you can comment on or make changes to this bug.