Window: fix issue with multi Activity support

each Activity has its own Window object. Therefore the check if the
contentView has changed needs to be in the common native window
This commit is contained in:
Julian Winkler
2023-10-28 09:21:04 +02:00
parent a2381f4721
commit 469d47091c
2 changed files with 8 additions and 6 deletions

View File

@@ -41,11 +41,9 @@ public class Window {
}
public void setContentView(View view) {
if (view != contentView) {
contentView = view;
view.onAttachedToWindow();
set_widget_as_root(native_window, view.widget);
}
contentView = view;
view.onAttachedToWindow();
set_widget_as_root(native_window, view.widget);
}
public View getDecorView() {