Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94248123 authored by Clara Bayarri's avatar Clara Bayarri
Browse files

Restrict unsupported API usage to View#mMinWidth/Height

This data is directly accessible via getMinimumWidth (API 16)
and setMinimumWidth (API 1). Also exposed in androidX via
ViewCompat

Identical for Height methods

Bug: 117521509
Bug: 117521475
Test: none
Change-Id: I2e92574acd053aecec9c992a89ee57fd9785415e
parent 509d06a6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4714,7 +4714,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     * of this view to at least this amount.
     */
    @ViewDebug.ExportedProperty(category = "measurement")
    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
    private int mMinHeight;
    /**
@@ -4722,7 +4722,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     * of this view to at least this amount.
     */
    @ViewDebug.ExportedProperty(category = "measurement")
    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
    private int mMinWidth;
    /**