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
add stub implementation for startActivityForResult
This commit is contained in:
@@ -192,4 +192,11 @@ public class Activity extends Context {
|
||||
public final void runOnUiThread(Runnable action) {
|
||||
action.run(); // FIXME: running synchronously for now
|
||||
}
|
||||
|
||||
protected void onActivityResult (int requestCode, int resultCode, Intent data) {}
|
||||
|
||||
public void startActivityForResult (Intent intent, int requestCode) {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user