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/04/11 03:14:59 UTC

[4/5] incubator-weex git commit: * [android] update isHardwareSupport resuse isCPUSupport

* [android] update isHardwareSupport resuse isCPUSupport


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

Branch: refs/heads/0.12-dev
Commit: 3df8d860f143ce3fc5614c4c53284e5c1e431f3c
Parents: 61f7ad8
Author: xkli <56...@qq.com>
Authored: Tue Apr 11 11:10:56 2017 +0800
Committer: xkli <56...@qq.com>
Committed: Tue Apr 11 11:10:56 2017 +0800

----------------------------------------------------------------------
 .../sdk/src/main/java/com/taobao/weex/WXEnvironment.java    | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3df8d860/android/sdk/src/main/java/com/taobao/weex/WXEnvironment.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/main/java/com/taobao/weex/WXEnvironment.java b/android/sdk/src/main/java/com/taobao/weex/WXEnvironment.java
index 0483faf..44c5a77 100755
--- a/android/sdk/src/main/java/com/taobao/weex/WXEnvironment.java
+++ b/android/sdk/src/main/java/com/taobao/weex/WXEnvironment.java
@@ -345,15 +345,10 @@ public class WXEnvironment {
    */
   @Deprecated
   public static boolean isHardwareSupport() {
-    boolean excludeX86 = "true".equals(options.get(SETTING_EXCLUDE_X86SUPPORT));
-    boolean isX86AndExcluded = WXSoInstallMgrSdk.isX86() && excludeX86;
-    boolean isCPUSupport = WXSoInstallMgrSdk.isCPUSupport() && !isX86AndExcluded;
     if (WXEnvironment.isApkDebugable()) {
-      WXLogUtils.d("WXEnvironment.sSupport:" + isCPUSupport
-                   + "isX86AndExclueded: "+ isX86AndExcluded
-                   + " !WXUtils.isTabletDevice():" + !WXUtils.isTabletDevice());
+      WXLogUtils.d("isTableDevice:" + WXUtils.isTabletDevice());
     }
-    return isCPUSupport && !WXUtils.isTabletDevice();
+    return isCPUSupport() && !WXUtils.isTabletDevice();
   }
 
   /**