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
android: Support Unity text input dialog
This commit is contained in:
@@ -30,6 +30,10 @@ public class Dialog implements Window.Callback, DialogInterface {
|
||||
window.native_window = nativePtr;
|
||||
}
|
||||
|
||||
public Dialog(Context context) {
|
||||
this(context, 0);
|
||||
}
|
||||
|
||||
public final boolean requestWindowFeature(int featureId) {
|
||||
return false;
|
||||
}
|
||||
@@ -60,6 +64,10 @@ public class Dialog implements Window.Callback, DialogInterface {
|
||||
this.onDismissListener = onDismissListener;
|
||||
}
|
||||
|
||||
public View findViewById(int id) {
|
||||
return window.findViewById(id);
|
||||
}
|
||||
|
||||
public void show() {
|
||||
System.out.println("showing the Dialog " + this);
|
||||
Runnable action = new Runnable() {
|
||||
|
||||
Reference in New Issue
Block a user