* [android] update NavigatorModule add judge callback
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/3aa61a56 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/3aa61a56 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/3aa61a56 Branch: refs/heads/0.11-dev Commit: 3aa61a56806d23815d9641385e0818a0ae6a9639 Parents: 0c36a80 Author: xkli <569664...@qq.com> Authored: Mon Apr 10 15:05:37 2017 +0800 Committer: xkli <569664...@qq.com> Committed: Mon Apr 10 15:05:37 2017 +0800 ---------------------------------------------------------------------- .../com/taobao/weex/appfram/navigator/WXNavigatorModule.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3aa61a56/android/sdk/src/main/java/com/taobao/weex/appfram/navigator/WXNavigatorModule.java ---------------------------------------------------------------------- diff --git a/android/sdk/src/main/java/com/taobao/weex/appfram/navigator/WXNavigatorModule.java b/android/sdk/src/main/java/com/taobao/weex/appfram/navigator/WXNavigatorModule.java index 65ad86f..6c9c4f7 100755 --- a/android/sdk/src/main/java/com/taobao/weex/appfram/navigator/WXNavigatorModule.java +++ b/android/sdk/src/main/java/com/taobao/weex/appfram/navigator/WXNavigatorModule.java @@ -232,9 +232,7 @@ public class WXNavigatorModule extends WXModule { callback.invoke(MSG_FAILED); } } - } - - if (callback != null) { + } else if (callback != null) { callback.invoke(MSG_FAILED); } }