View: respect requestLayout() calls also from inside onMeasure()

Previously, we accidentally cleared the flag after onMeasure(). This
fixes one cause for the bug where you had to resize the window to see
the content, but the bug still persists in some apps like Shosetsu.
This commit is contained in:
Julian Winkler
2025-10-10 12:02:47 +02:00
parent d4aca99823
commit f208e944d2

View File

@@ -1400,10 +1400,10 @@ public class View implements Drawable.Callback {
public final void measure(int widthMeasureSpec, int heightMeasureSpec) {
if (layoutRequested || widthMeasureSpec != oldWidthMeasureSpec || heightMeasureSpec != oldHeightMeasureSpec) {
layoutRequested = false;
oldWidthMeasureSpec = widthMeasureSpec;
oldHeightMeasureSpec = heightMeasureSpec;
onMeasure(widthMeasureSpec, heightMeasureSpec);
layoutRequested = false;
}
}