Explorar o código

处理审批流出现的webView显示问题

Bitliker %!s(int64=8) %!d(string=hai) anos
pai
achega
c6de48ff17

+ 7 - 5
app_core/common/src/main/java/com/common/config/BaseConfig.java

@@ -10,7 +10,7 @@ import android.content.pm.ApplicationInfo;
  */
  */
 public class BaseConfig {
 public class BaseConfig {
     private static Context context;
     private static Context context;
-    private static boolean DEBUG;
+    private static boolean debug;
     private static boolean canShowTocat = true;
     private static boolean canShowTocat = true;
 
 
     private BaseConfig() {
     private BaseConfig() {
@@ -26,9 +26,9 @@ public class BaseConfig {
     private static void isApkInDebug() {
     private static void isApkInDebug() {
         try {
         try {
             ApplicationInfo info = getContext().getApplicationInfo();
             ApplicationInfo info = getContext().getApplicationInfo();
-            DEBUG = (info.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;
+            debug = (info.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;
         } catch (Exception e) {
         } catch (Exception e) {
-            DEBUG = false;
+            debug = false;
         }
         }
     }
     }
 
 
@@ -41,8 +41,10 @@ public class BaseConfig {
 
 
     /*是否显示log*/
     /*是否显示log*/
     public static boolean showLogAble() {
     public static boolean showLogAble() {
-        return DEBUG && canShowTocat;
+        return debug && canShowTocat;
     }
     }
 
 
-
+    public static boolean isDebug() {
+        return debug;
+    }
 }
 }