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
WIP
This commit is contained in:
@@ -10,6 +10,8 @@ public class Window {
|
||||
public static final int FEATURE_OPTIONS_PANEL = 0;
|
||||
public static final int FEATURE_NO_TITLE = 1;
|
||||
|
||||
public ViewTreeObserver view_tree_observer = null;
|
||||
|
||||
public static interface Callback {
|
||||
public void onContentChanged();
|
||||
|
||||
@@ -42,6 +44,11 @@ public class Window {
|
||||
decorView.onAttachedToWindow();
|
||||
}
|
||||
|
||||
public void set_native_window(long native_window) {
|
||||
this.native_window = native_window;
|
||||
set_jobject(native_window, this);
|
||||
}
|
||||
|
||||
public void addFlags(int flags) {}
|
||||
public void setFlags(int flags, int mask) {}
|
||||
public void clearFlags(int flags) {}
|
||||
@@ -65,12 +72,6 @@ public class Window {
|
||||
return decorView;
|
||||
}
|
||||
|
||||
public native void set_widget_as_root(long native_window, long widget);
|
||||
private native void set_title(long native_window, String title);
|
||||
|
||||
public native void take_input_queue(long native_window, InputQueue.Callback callback, InputQueue queue);
|
||||
public native void set_layout(long native_window, int width, int height);
|
||||
|
||||
public void takeInputQueue(InputQueue.Callback callback) {
|
||||
take_input_queue(native_window, callback, new InputQueue());
|
||||
}
|
||||
@@ -160,4 +161,10 @@ public class Window {
|
||||
public void setReturnTransition(Transition transition) {}
|
||||
|
||||
public void setEnterTransition(Transition transition) {}
|
||||
|
||||
public native void set_widget_as_root(long native_window, long widget);
|
||||
private native void set_title(long native_window, String title);
|
||||
public native void take_input_queue(long native_window, InputQueue.Callback callback, InputQueue queue);
|
||||
public native void set_layout(long native_window, int width, int height);
|
||||
private static native void set_jobject(long ptr, Window obj);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user