Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TextInputLayout] Update text paddings in compound layouts uniformly #4287

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pubiqq
Copy link
Contributor

@pubiqq pubiqq commented Sep 10, 2024

Fixes #4231, most likely fixes #3869 and fixes #3993.

@@ -718,17 +716,6 @@ public TextInputLayout(@NonNull Context context, @Nullable AttributeSet attrs, i
setHelperText(helperText);
}

@Override
public void onGlobalLayout() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The OnGlobalLayoutListener was originally added in 93360a5 in order to prevent an onMeasure() infinite loop bug, wouldn't removing OnGlobalLayoutListener reintroduce that bug?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know about the bug, but the situation from the explanation shouldn't happen since endLayout.measure() for the visible endLayout is guaranteed to be called by super.onMeasure(), which is before updateDummyDrawables().

@pubiqq pubiqq mentioned this pull request Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants