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
api-impl: add misc stubs and static finals
This commit is contained in:
@@ -624,6 +624,23 @@ public class Activity extends ContextThemeWrapper implements Window.Callback, La
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int getTaskId() {
|
||||
/* we don't support multiple activity stacks, so this is probably fine? */
|
||||
return System.identityHashCode(this_application);
|
||||
}
|
||||
|
||||
boolean moveTaskToBack(boolean nonroot) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void setFinishOnTouchOutside(boolean finish) {
|
||||
}
|
||||
|
||||
public void finishActivity(int requestCode) {
|
||||
/* TODO: track started activities so we can finish the right one here */
|
||||
Slog.w(TAG, "finishActivity: stub");
|
||||
}
|
||||
|
||||
public void finishAfterTransition() {
|
||||
finish();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user