android: Support Unity text input dialog

This commit is contained in:
Nikita Travkin
2024-05-19 12:52:47 +05:00
parent c4af0d1ed4
commit e1f79dc3a9
3 changed files with 26 additions and 0 deletions

View File

@@ -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() {