View: requestLayout: post with Looper to avoid stack exhaustion

This commit is contained in:
Mis012
2024-03-21 21:05:20 +01:00
parent 5af3fa9e79
commit 6839f8b651

View File

@@ -1631,7 +1631,12 @@ public class View extends Object {
}
public void forceLayout() {
requestLayout();
new Handler(Looper.getMainLooper()).post(new Runnable() {
@Override
public void run() {
requestLayout();
}
});
}
public void removeOnAttachStateChangeListener(OnAttachStateChangeListener listener) {}