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

Commit 36f7827a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Restrict unsupported usage of Linear/RelativeLayout APIs"

parents d531f70d 60368586
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -189,7 +189,7 @@ public class LinearLayout extends ViewGroup {
            @ViewDebug.FlagToString(mask = Gravity.RELATIVE_LAYOUT_DIRECTION,
            @ViewDebug.FlagToString(mask = Gravity.RELATIVE_LAYOUT_DIRECTION,
                equals = Gravity.RELATIVE_LAYOUT_DIRECTION, name = "RELATIVE")
                equals = Gravity.RELATIVE_LAYOUT_DIRECTION, name = "RELATIVE")
        }, formatToHexString = true)
        }, formatToHexString = true)
    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
    private int mGravity = Gravity.START | Gravity.TOP;
    private int mGravity = Gravity.START | Gravity.TOP;


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


    private View mBaselineView = null;
    private View mBaselineView = null;


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