You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ky...@apache.org on 2019/04/03 03:46:07 UTC

[incubator-weex] branch master updated: [WEEX][Weex-Android] Supported Pad Render Mode For Big Screen (#2273)

This is an automated email from the ASF dual-hosted git repository.

kyork pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git


The following commit(s) were added to refs/heads/master by this push:
     new e006164  [WEEX][Weex-Android] Supported Pad Render Mode For Big Screen (#2273)
e006164 is described below

commit e006164f1a14e5329a338a8ccbfb2ba18e9a5997
Author: codefurture <gu...@163.com>
AuthorDate: Wed Apr 3 11:46:02 2019 +0800

    [WEEX][Weex-Android] Supported Pad Render Mode For Big Screen (#2273)
---
 android/sdk/src/main/java/com/taobao/weex/WXEnvironment.java | 2 +-
 android/sdk/src/main/java/com/taobao/weex/utils/WXUtils.java | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

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 cce9bdd..8add0db 100644
--- a/android/sdk/src/main/java/com/taobao/weex/WXEnvironment.java
+++ b/android/sdk/src/main/java/com/taobao/weex/WXEnvironment.java
@@ -258,7 +258,7 @@ public class WXEnvironment {
     if (WXEnvironment.isApkDebugable()) {
       WXLogUtils.d("isTableDevice:" + WXUtils.isTabletDevice());
     }
-    return isCPUSupport() && !WXUtils.isTabletDevice();
+    return isCPUSupport();
   }
 
   /**
diff --git a/android/sdk/src/main/java/com/taobao/weex/utils/WXUtils.java b/android/sdk/src/main/java/com/taobao/weex/utils/WXUtils.java
index 839763f..f73be20 100644
--- a/android/sdk/src/main/java/com/taobao/weex/utils/WXUtils.java
+++ b/android/sdk/src/main/java/com/taobao/weex/utils/WXUtils.java
@@ -404,6 +404,7 @@ public class WXUtils {
     return result;
   }
 
+  @Deprecated
   public static boolean isTabletDevice() {
     try{
       return (WXEnvironment.getApplication().getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) >= Configuration.SCREENLAYOUT_SIZE_LARGE;