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,9 +41,11 @@ public class Window {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setContentView(View view) {
|
public void setContentView(View view) {
|
||||||
|
if (view != contentView) {
|
||||||
contentView = view;
|
contentView = view;
|
||||||
set_widget_as_root(native_window, view.widget);
|
set_widget_as_root(native_window, view.widget);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public View getDecorView() {
|
public View getDecorView() {
|
||||||
return new View(); // FIXME: this can probably backfire
|
return new View(); // FIXME: this can probably backfire
|
||||||
|
|||||||
Reference in New Issue
Block a user