From d673a151c961cee72d0f38a561bdd04bd5bd23bf Mon Sep 17 00:00:00 2001 From: John Zhao Date: Wed, 16 Jan 2019 19:42:00 +0800 Subject: [PATCH] fix(android): fix call complete event --- .../main/java/com/slightech/mynteye/demo/ui/MainActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/wrappers/android/mynteye/app/src/main/java/com/slightech/mynteye/demo/ui/MainActivity.java b/wrappers/android/mynteye/app/src/main/java/com/slightech/mynteye/demo/ui/MainActivity.java index 23abf24..2eec261 100644 --- a/wrappers/android/mynteye/app/src/main/java/com/slightech/mynteye/demo/ui/MainActivity.java +++ b/wrappers/android/mynteye/app/src/main/java/com/slightech/mynteye/demo/ui/MainActivity.java @@ -49,6 +49,7 @@ public class MainActivity extends BaseActivity { private void actionOpen(final Runnable completeEvent) { if (!RootUtils.isRooted()) { + if (completeEvent != null) completeEvent.run(); alert("Warning", "Root denied :("); return; }