Skip to content

Commit c256e93

Browse files
committed
fix: android looper
1 parent ea39962 commit c256e93

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Plugins/Android/Gree-Android/webview-nofragment/src/main/java/com/immutable/gree/unitywebview/CWebViewPluginNoUi.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ public static boolean isDestroyed(final Activity a) {
8686
}
8787

8888
public CWebViewPluginNoUi() {
89+
if (Looper.myLooper() == null) {
90+
Looper.prepare();
91+
}
8992
unityHandler = new Handler(Looper.myLooper());
9093
}
9194

0 commit comments

Comments
 (0)