Browse Source

MyTitleView工具类修改

niusongtao@dl-cg.com 5 years ago
parent
commit
cf7b2b6827

+ 11 - 11
base_library/src/main/java/com/mgtech/base_library/http/interceptor/InterceptorUtil.java

@@ -38,26 +38,26 @@ public class InterceptorUtil {
     public static String TAG="tua_interceptor";
 
     //日志拦截器
-    public static HttpLoggingInterceptor LogInterceptor(){
-        return new HttpLoggingInterceptor(new HttpLoggingInterceptor.Logger() {
-            @Override
-            public void log(String message) {
-                Log.w(TAG, "log: "+message );
-            }
-        }).setLevel(BuildConfig.DEBUG?HttpLoggingInterceptor.Level.BODY:HttpLoggingInterceptor.Level.NONE);//设置打印数据的级别
-    }
-
-
 //    public static HttpLoggingInterceptor LogInterceptor(){
 //        return new HttpLoggingInterceptor(new HttpLoggingInterceptor.Logger() {
 //            @Override
 //            public void log(String message) {
 //                Log.w(TAG, "log: "+message );
 //            }
-//        }).setLevel(HttpLoggingInterceptor.Level.BODY);//设置打印数据的级别
+//        }).setLevel(BuildConfig.DEBUG?HttpLoggingInterceptor.Level.BODY:HttpLoggingInterceptor.Level.NONE);//设置打印数据的级别
 //    }
 
 
+    public static HttpLoggingInterceptor LogInterceptor(){
+        return new HttpLoggingInterceptor(new HttpLoggingInterceptor.Logger() {
+            @Override
+            public void log(String message) {
+                Log.w(TAG, "log: "+message );
+            }
+        }).setLevel(HttpLoggingInterceptor.Level.BODY);//设置打印数据的级别
+    }
+
+
     //无网络的情况下读取缓存
     public static Interceptor cacheInterceptor(){
         return new Interceptor() {

+ 1 - 1
base_library/src/main/java/com/mgtech/base_library/util/GoogleLocationUtil.java

@@ -162,7 +162,7 @@ public class GoogleLocationUtil {
             if (locationInfoListener == null)
                 return;
             if(location != null){
-                LogUtil.e("nst","onLocationChanged:"+location.getLatitude()+"--------"+location.getLongitude());
+//                LogUtil.e("nst","onLocationChanged:"+location.getLatitude()+"--------"+location.getLongitude());
                 locationInfoListener.locationSuccess(location.getLatitude(),location.getLongitude());
             }else{
                 locationInfoListener.locationFailed(context.getString(R.string.map_location_failure));

+ 1 - 1
base_library/src/main/java/com/mgtech/base_library/util/ToastUtils.java

@@ -30,7 +30,7 @@ public class ToastUtils {
 
     @SuppressLint("ShowToast")
     private static void show(CharSequence text, int duration) {
-        text = TextUtils.isEmpty(text == null ? "" : text.toString()) ? "message empty!"
+        text = TextUtils.isEmpty(text == null ? "" : text.toString()) ? "Server failed to get data!"
                 : text;
         if (toast == null) {
             toast = Toast.makeText(context, text, duration);

+ 1 - 0
base_library/src/main/res/values/colors.xml

@@ -54,6 +54,7 @@
     <color name="gray_f6">#f6f6f6</color>
     <color name="all_yellow">#FFD700</color>
     <color name="f2f2f2">#F2F2F2</color>
+    <color name="_787878">#787878</color>
 
 
     <color name="biometricprompt_color_primary">#415FFF</color>