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

Commit 13f35f3c authored by Romain Guy's avatar Romain Guy
Browse files

Correctly check bottom padding in setPadding().

Change-Id: Ie8099d37ad865acc559c4a4d34eb84960a1a19f3
parent c78504dc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1975,7 +1975,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
    public void setPadding(int left, int top, int right, int bottom) {
        super.setPadding(left, top, right, bottom);

        if ((mPaddingLeft | mPaddingTop | mPaddingRight | mPaddingRight) != 0) {
        if ((mPaddingLeft | mPaddingTop | mPaddingRight | mPaddingBottom) != 0) {
            mGroupFlags |= FLAG_PADDING_NOT_NULL;
        } else {
            mGroupFlags &= ~FLAG_PADDING_NOT_NULL;