You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
View: requestLayout: post with Looper to avoid stack exhaustion
This commit is contained in:
@@ -1631,8 +1631,13 @@ public class View extends Object {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void forceLayout() {
|
public void forceLayout() {
|
||||||
|
new Handler(Looper.getMainLooper()).post(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
requestLayout();
|
requestLayout();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
public void removeOnAttachStateChangeListener(OnAttachStateChangeListener listener) {}
|
public void removeOnAttachStateChangeListener(OnAttachStateChangeListener listener) {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user