Loading core/java/android/view/View.java +3 −1 Original line number Diff line number Diff line Loading @@ -10002,8 +10002,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * Resolve the layout parameters depending on the resolved layout direction * * @hide */ private void resolveLayoutParams() { public void resolveLayoutParams() { if (mLayoutParams != null) { mLayoutParams.resolveLayoutDirection(getLayoutDirection()); } Loading core/java/android/view/ViewGroup.java +15 −0 Original line number Diff line number Diff line Loading @@ -5358,6 +5358,16 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager } } @Override public void resolveLayoutParams() { super.resolveLayoutParams(); int count = getChildCount(); for (int i = 0; i < count; i++) { final View child = getChildAt(i); child.resolveLayoutParams(); } } /** * @hide */ Loading Loading @@ -5981,6 +5991,11 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager */ @Override public void resolveLayoutDirection(int layoutDirection) { // No need to resolve if it is the same layout direction as before if (this.layoutDirection == layoutDirection) { return; } setLayoutDirection(layoutDirection); if (!isMarginRelative()) return; Loading Loading
core/java/android/view/View.java +3 −1 Original line number Diff line number Diff line Loading @@ -10002,8 +10002,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * Resolve the layout parameters depending on the resolved layout direction * * @hide */ private void resolveLayoutParams() { public void resolveLayoutParams() { if (mLayoutParams != null) { mLayoutParams.resolveLayoutDirection(getLayoutDirection()); } Loading
core/java/android/view/ViewGroup.java +15 −0 Original line number Diff line number Diff line Loading @@ -5358,6 +5358,16 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager } } @Override public void resolveLayoutParams() { super.resolveLayoutParams(); int count = getChildCount(); for (int i = 0; i < count; i++) { final View child = getChildAt(i); child.resolveLayoutParams(); } } /** * @hide */ Loading Loading @@ -5981,6 +5991,11 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager */ @Override public void resolveLayoutDirection(int layoutDirection) { // No need to resolve if it is the same layout direction as before if (this.layoutDirection == layoutDirection) { return; } setLayoutDirection(layoutDirection); if (!isMarginRelative()) return; Loading