fix(android): fix call complete event

This commit is contained in:
John Zhao 2019-01-16 19:42:00 +08:00
parent d531112075
commit d673a151c9

View File

@ -49,6 +49,7 @@ public class MainActivity extends BaseActivity {
private void actionOpen(final Runnable completeEvent) { private void actionOpen(final Runnable completeEvent) {
if (!RootUtils.isRooted()) { if (!RootUtils.isRooted()) {
if (completeEvent != null) completeEvent.run();
alert("Warning", "Root denied :("); alert("Warning", "Root denied :(");
return; return;
} }