Added maxSdk annotation to mNinePatchChunk field on Bitmap
Hidden API usage in Bitmap->mNinePatchChunk. Annotated the field with the max sdk annotation as there is a public getNinePatchChunk method on Bitmap. Bug: 123769491 Test: N/A Change-Id: I59cee2b8af238e5656b1366c044600f6feaa95ab
This commit is contained in:
@@ -25,6 +25,7 @@ import android.annotation.UnsupportedAppUsage;
|
||||
import android.annotation.WorkerThread;
|
||||
import android.content.res.ResourcesImpl;
|
||||
import android.hardware.HardwareBuffer;
|
||||
import android.os.Build;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.os.StrictMode;
|
||||
@@ -77,7 +78,7 @@ public final class Bitmap implements Parcelable {
|
||||
*/
|
||||
private boolean mRequestPremultiplied;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 123769491)
|
||||
private byte[] mNinePatchChunk; // may be null
|
||||
@UnsupportedAppUsage
|
||||
private NinePatch.InsetStruct mNinePatchInsets; // may be null
|
||||
|
||||
Reference in New Issue
Block a user