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
Window.java: prevent calling set_widget_as_root() twice
This fixes a segfault in Cut The Rope introduced by commit 3399c84e84
This commit is contained in:
@@ -41,8 +41,10 @@ public class Window {
|
||||
}
|
||||
|
||||
public void setContentView(View view) {
|
||||
contentView = view;
|
||||
set_widget_as_root(native_window, view.widget);
|
||||
if (view != contentView) {
|
||||
contentView = view;
|
||||
set_widget_as_root(native_window, view.widget);
|
||||
}
|
||||
}
|
||||
|
||||
public View getDecorView() {
|
||||
|
||||
Reference in New Issue
Block a user