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
fix multi Activity support
jobjects have to be compared with env->IsSameObject() and each Activity needs its own Window instance. The GtkWindow is still shared between all Activities
This commit is contained in:
@@ -20,6 +20,7 @@ public class Window {
|
||||
|
||||
// FIXME private
|
||||
public long native_window;
|
||||
public View contentView;
|
||||
|
||||
private Window.Callback callback;
|
||||
|
||||
@@ -39,6 +40,7 @@ public class Window {
|
||||
}
|
||||
|
||||
public void setContentView(View view) {
|
||||
contentView = view;
|
||||
set_widget_as_root(native_window, view.widget);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user