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
Activity: finish asynchron
This commit is contained in:
@@ -405,7 +405,7 @@ public class Activity extends ContextThemeWrapper implements Window.Callback, La
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void finish() {
|
public void finish() {
|
||||||
runOnUiThread(new Runnable() {
|
new Handler(Looper.getMainLooper()).post(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (window != null && window.native_window != 0) {
|
if (window != null && window.native_window != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user