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

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

Restrict unsupported usage of Linear/RelativeLayout APIs

These internal accesses can be done by existing public API

Bug: 117521217, 117521667
Test: make
Change-Id: I31116551f6e5a4f8c84a811f62419302fee91c2c
parent 509d06a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -189,7 +189,7 @@ public class LinearLayout extends ViewGroup {
            @ViewDebug.FlagToString(mask = Gravity.RELATIVE_LAYOUT_DIRECTION,
                equals = Gravity.RELATIVE_LAYOUT_DIRECTION, name = "RELATIVE")
        }, formatToHexString = true)
    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
    private int mGravity = Gravity.START | Gravity.TOP;

    @ViewDebug.ExportedProperty(category = "measurement")
+1 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ public class RelativeLayout extends ViewGroup {

    private View mBaselineView = null;

    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
    private int mGravity = Gravity.START | Gravity.TOP;
    private final Rect mContentBounds = new Rect();
    private final Rect mSelfBounds = new Rect();