From a9af927de776c2824e3aaf64cf73d8679d1d941f Mon Sep 17 00:00:00 2001 From: TherCN Date: Sun, 29 Oct 2023 15:20:21 +0800 Subject: [PATCH] a --- app/src/main/java/com/disney/WMW/WMWActivity.java | 8 ++++++++ app/src/main/java/thercn/wmw/GlobalApplication.java | 1 + 2 files changed, 9 insertions(+) diff --git a/app/src/main/java/com/disney/WMW/WMWActivity.java b/app/src/main/java/com/disney/WMW/WMWActivity.java index 4afbe4c..496bcb0 100644 --- a/app/src/main/java/com/disney/WMW/WMWActivity.java +++ b/app/src/main/java/com/disney/WMW/WMWActivity.java @@ -33,6 +33,8 @@ import org.fmod.FMODAudioDevice; import thercn.wmw.MainActivity; import thercn.wmw.R; +import android.view.ActionMode; +import android.view.ActionMode.Callback; public class WMWActivity extends BaseActivity { private static GlobalPurchaseHandler globalIapHandler; @@ -61,6 +63,12 @@ public class WMWActivity extends BaseActivity { { System.loadLibrary("mui"); } + + @Override + public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int type) { + return super.onWindowStartingActionMode(callback, type); + } + public WMWActivity() { redirectOutput(); this.isRunning = false; diff --git a/app/src/main/java/thercn/wmw/GlobalApplication.java b/app/src/main/java/thercn/wmw/GlobalApplication.java index 145862b..777b561 100644 --- a/app/src/main/java/thercn/wmw/GlobalApplication.java +++ b/app/src/main/java/thercn/wmw/GlobalApplication.java @@ -145,6 +145,7 @@ public void run() { try { Looper.loop(); } catch (final Throwable e) { + Log.e("WMW",Log.getStackTraceString(e)); if (isRunning.get()) { MAIN_HANDLER.post(new Runnable(){