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: 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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user