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

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

Restrict unsupported API usage to View#mParent/mTop/mLeft/mRight/mBottom

All these properties have getters and setters since API 11 and
should be accessed via those.

Bug: 117521221
Bug: 117520719
Bug: 117521672
Test: none
Change-Id: Id96421370abf6d9417d7411698aae7603c1e0ff1
parent 94248123
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -3993,7 +3993,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     *
     * @see #getParent()
     */
    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
    protected ViewParent mParent;
    /**
@@ -4199,7 +4199,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     * {@hide}
     */
    @ViewDebug.ExportedProperty(category = "layout")
    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
    protected int mLeft;
    /**
     * The distance in pixels from the left edge of this view's parent
@@ -4207,7 +4207,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     * {@hide}
     */
    @ViewDebug.ExportedProperty(category = "layout")
    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
    protected int mRight;
    /**
     * The distance in pixels from the top edge of this view's parent
@@ -4215,7 +4215,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     * {@hide}
     */
    @ViewDebug.ExportedProperty(category = "layout")
    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
    protected int mTop;
    /**
     * The distance in pixels from the top edge of this view's parent
@@ -4223,7 +4223,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     * {@hide}
     */
    @ViewDebug.ExportedProperty(category = "layout")
    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
    protected int mBottom;
    /**