api-impl: add misc stuff needed by Teeter

note that Teeter still needs more stuff before it will work
This commit is contained in:
Mis012
2023-07-25 14:29:43 +02:00
parent 08998b0076
commit ffb2855a05
17 changed files with 181 additions and 3 deletions

View File

@@ -233,4 +233,8 @@ public class Activity extends Context {
System.out.println("startActivityForResult(" + intent + ", " + requestCode + ") called, but we don't currently support multiple activities");
onActivityResult(requestCode, 0 /*RESULT_CANCELED*/, new Intent()); // RESULT_CANCELED is the only pre-defined return value, so hopefully it works out for us
}
public final void showDialog(int id) {
System.out.println("Activity.showDialog(" + id + ") called");
}
}

View File

@@ -11,10 +11,12 @@ public class AlertDialog extends Dialog {
}
public AlertDialog.Builder setPositiveButton(int textId, DialogInterface.OnClickListener listener) {
System.out.println("AlertDialog.Builder setPositiveButton called with textId: '" + textId + "'");
return this;
}
public AlertDialog.Builder setPositiveButton(CharSequence text, DialogInterface.OnClickListener listener) {
System.out.println("AlertDialog.Builder setPositiveButton called with text: '" + text + "'");
return this;
}