You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by so...@apache.org on 2017/03/13 07:19:01 UTC

[4/6] incubator-weex git commit: * [android] 修复概率性白屏。

* [android] \u4fee\u590d\u6982\u7387\u6027\u767d\u5c4f\u3002


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/ae7b0811
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/ae7b0811
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/ae7b0811

Branch: refs/heads/0.11-dev
Commit: ae7b08113d56cb3d98fdc63b33d46285c08e3a08
Parents: a9841f7
Author: YorkShen <sh...@gmail.com>
Authored: Sat Mar 11 00:27:09 2017 +0800
Committer: YorkShen <sh...@gmail.com>
Committed: Sat Mar 11 00:27:09 2017 +0800

----------------------------------------------------------------------
 android/sdk/src/main/java/com/taobao/weex/utils/WXViewUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ae7b0811/android/sdk/src/main/java/com/taobao/weex/utils/WXViewUtils.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/main/java/com/taobao/weex/utils/WXViewUtils.java b/android/sdk/src/main/java/com/taobao/weex/utils/WXViewUtils.java
index d7e59eb..a1967c8 100755
--- a/android/sdk/src/main/java/com/taobao/weex/utils/WXViewUtils.java
+++ b/android/sdk/src/main/java/com/taobao/weex/utils/WXViewUtils.java
@@ -277,7 +277,7 @@ public class WXViewUtils {
     WXSDKInstance instance = WXSDKManager.getInstance().getSDKInstance(instanceId);
     if (instance != null) {
       int weexHeight = instance.getWeexHeight();
-      if (weexHeight >= 0 || weexHeight == -2) {
+      if (weexHeight > 0 || weexHeight == -2) {
         return weexHeight;
       }
       else {