YorkShen commented on a change in pull request #2712: Update for libweexjsb path
URL: https://github.com/apache/incubator-weex/pull/2712#discussion_r303880337
 
 

 ##########
 File path: android/sdk/src/main/java/com/taobao/weex/WXEnvironment.java
 ##########
 @@ -583,4 +643,37 @@ public static String getLibLdPath() {
     WXLogUtils.e("getLibLdPath is " + LIB_LD_PATH);
     return LIB_LD_PATH;
   }
+
+  public static class WXDefaultSettings {
+    private String configName = "weex_default_settings";
+    private SharedPreferences sharedPreferences = null;
+    public WXDefaultSettings(Application application) {
+      if(application != null) {
+        sharedPreferences = application.getSharedPreferences(configName, 
MODE_PRIVATE);
+      }
+    }
+
+    public synchronized String getValue(String key, String defaultValue) {
+      if(sharedPreferences == null || TextUtils.isEmpty(key)) {
+        WXLogUtils.e("get default settings " + key + " return default value :" 
+ defaultValue);
 
 Review comment:
   Change the following line to `Log.i()`
   * 658
   * 663
   * 673

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to