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 2017/08/10 07:07:56 UTC

[2/3] incubator-weex git commit: * [android] Update to VERSION_CODE.N

* [android] Update to VERSION_CODE.N


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

Branch: refs/heads/0.16-dev
Commit: 1752f06ec6304e5f716a92db572c04cb94673933
Parents: efd535a
Author: YorkShen <sh...@gmail.com>
Authored: Fri Jul 28 17:21:12 2017 +0800
Committer: YorkShen <sh...@gmail.com>
Committed: Fri Jul 28 17:21:12 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/1752f06e/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 c6120d5..fb9ab8b 100644
--- a/android/sdk/src/main/java/com/taobao/weex/utils/WXViewUtils.java
+++ b/android/sdk/src/main/java/com/taobao/weex/utils/WXViewUtils.java
@@ -28,6 +28,7 @@ import android.graphics.RectF;
 import android.graphics.drawable.Drawable;
 import android.graphics.drawable.LayerDrawable;
 import android.os.Build;
+import android.os.Build.VERSION_CODES;
 import android.support.annotation.IntDef;
 import android.support.annotation.NonNull;
 import android.support.annotation.Nullable;
@@ -404,10 +405,9 @@ public class WXViewUtils {
    * clipPath doesn't work with rotation nor scale when API level is 24.
    * As animation will not cause redraw if hardware-acceleration enabled, clipCanvas feature has
    * to be disabled when API level is 24 without considering the animation property.
-   * As the compile version of weex_sdk is 23, so API level 24 has to be hard-code.
    */
   private static boolean clipCanvasIfAnimationExist() {
-    return Build.VERSION.SDK_INT != 24;
+    return Build.VERSION.SDK_INT != VERSION_CODES.N;
   }
 
   /**