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 2020/10/29 02:37:42 UTC

[incubator-weex] branch master updated: [Android] Optimize AndroidR logic (#3291)

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 98704f8  [Android] Optimize AndroidR logic (#3291)
98704f8 is described below

commit 98704f862313d78a9a80d3071a7567f1c48dca99
Author: katherine95s <51...@users.noreply.github.com>
AuthorDate: Thu Oct 29 10:37:29 2020 +0800

    [Android] Optimize AndroidR logic (#3291)
    
    Co-authored-by: Huiying Jiang <jh...@alibaba-inc.com>
---
 android/sdk/src/main/java/org/apache/weex/WXEnvironment.java | 2 +-
 weex_core/Source/android/multiprocess/weex_js_connection.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/android/sdk/src/main/java/org/apache/weex/WXEnvironment.java b/android/sdk/src/main/java/org/apache/weex/WXEnvironment.java
index 0f8ba4c..f85b7c8 100644
--- a/android/sdk/src/main/java/org/apache/weex/WXEnvironment.java
+++ b/android/sdk/src/main/java/org/apache/weex/WXEnvironment.java
@@ -565,7 +565,7 @@ public class WXEnvironment {
   }
 
   public static int memfd_create(String name, int size) {
-    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) {
+    if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.P) {
       return 0;
     }
 
diff --git a/weex_core/Source/android/multiprocess/weex_js_connection.cpp b/weex_core/Source/android/multiprocess/weex_js_connection.cpp
index 555324d..b5c8bbf 100644
--- a/weex_core/Source/android/multiprocess/weex_js_connection.cpp
+++ b/weex_core/Source/android/multiprocess/weex_js_connection.cpp
@@ -693,7 +693,7 @@ int WeexConnInfo::memfd_create_below_androidR(const char *name, size_t size) {
 
 int WeexConnInfo::memfd_create_androidR(const char *name, size_t size) {
   JNIEnv *env = base::android::AttachCurrentThread();
-  jclass wx_env = env->FindClass("com/taobao/weex/WXEnvironment");
+  jclass wx_env = env->FindClass("org/apache/weex/WXEnvironment");
   if (wx_env) {
     jmethodID m_memfd_create_id =
         env->GetStaticMethodID(wx_env, "memfd_create", "(Ljava/lang/String;I)I");