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
multiple additions and fixes for the Java APIs
Stuff needed for WhatsApp support
This commit is contained in:
@@ -47,9 +47,13 @@ public class AlertDialog extends Dialog implements DialogInterface {
|
||||
|
||||
public AlertDialog.Builder setNegativeButton (CharSequence text, DialogInterface.OnClickListener listener) {
|
||||
System.out.println("AlertDialog.Builder setNegativeButton called with text: '" + text + "'");
|
||||
dialog.setButton(DialogInterface.BUTTON_NEGATIVE, text, listener);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AlertDialog.Builder setNegativeButton(int textId, DialogInterface.OnClickListener listener) {
|
||||
return setNegativeButton(dialog.getContext().getText(textId), listener);
|
||||
}
|
||||
|
||||
public AlertDialog.Builder setCancelable(boolean cancelable) {
|
||||
return this;
|
||||
@@ -95,5 +99,10 @@ public class AlertDialog extends Dialog implements DialogInterface {
|
||||
public AlertDialog create() {
|
||||
return dialog;
|
||||
}
|
||||
|
||||
public AlertDialog show() {
|
||||
dialog.show();
|
||||
return dialog;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user