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

Commit 611cd3f4 authored by Romain Guy's avatar Romain Guy
Browse files

Fixes layout shifts in LinearLayout.

Bug: 2329142.
parent e7d35eb5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -991,6 +991,9 @@ public class LinearLayout extends ViewGroup {
                    case Gravity.RIGHT:
                        childLeft = childRight - childWidth - lp.rightMargin;
                        break;
                    default:
                        childLeft = paddingLeft;
                        break;
                }
                
                
@@ -1102,6 +1105,9 @@ public class LinearLayout extends ViewGroup {
                            childTop -= (maxDescent[INDEX_BOTTOM] - descent);
                        }
                        break;
                    default:
                        childTop = paddingTop;
                        break;
                }

                childLeft += lp.leftMargin;