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
NOTE: the main addition in this commit is WIP support for apps which render on an EGL surface obtained using ANativeWindow_fromSurface currently, this EGL surface is obtained by creating a 700x700 pixel window with GLFW (the 700x700 size is hardcoded in several places) and only Wayland is supported ideally, we'd want to use a wayland subsurface to position the EGL surface above the Surface widget it's associated with (and do whatever for X11)
48 lines
1.2 KiB
Java
48 lines
1.2 KiB
Java
package android.app;
|
|
|
|
import android.content.Context;
|
|
import android.content.DialogInterface;
|
|
import android.view.View;
|
|
|
|
public class AlertDialog extends Dialog {
|
|
public static class Builder {
|
|
public Builder(Context context){
|
|
System.out.println("making an AlertDialog$Builder as we speak, my word!");
|
|
}
|
|
|
|
public AlertDialog.Builder setPositiveButton (int textId, DialogInterface.OnClickListener listener) {
|
|
return this;
|
|
}
|
|
|
|
public AlertDialog.Builder setPositiveButton (CharSequence text, DialogInterface.OnClickListener listener) {
|
|
return this;
|
|
}
|
|
|
|
public AlertDialog.Builder setCancelable (boolean cancelable) {
|
|
return this;
|
|
}
|
|
|
|
public AlertDialog.Builder setIcon (int iconId) {
|
|
return this;
|
|
}
|
|
|
|
public AlertDialog.Builder setTitle (CharSequence title) {
|
|
System.out.println("AlertDialog.Builder setTitle called with: '"+title+"'");
|
|
return this;
|
|
}
|
|
|
|
public AlertDialog.Builder setMessage (CharSequence message) {
|
|
System.out.println("AlertDialog.Builder setMessage called with: '"+message+"'");
|
|
return this;
|
|
}
|
|
|
|
public AlertDialog.Builder setView (View view) {
|
|
return this;
|
|
}
|
|
|
|
public AlertDialog create() {
|
|
return new AlertDialog();
|
|
}
|
|
}
|
|
}
|