@@ -36,7 +36,7 @@ public static boolean externalMounted() {
3636 if (state .equals (Environment .MEDIA_MOUNTED )) {
3737 return true ;
3838 }
39- Logger .warn ("external storage unmounted" );
39+ LogUtils .warn ("external storage unmounted" );
4040 return false ;
4141 }
4242
@@ -56,7 +56,7 @@ public static String getRootPath(Context context) {
5656 if (file != null ) {
5757 path = FileUtils .separator (file .getAbsolutePath ());
5858 }
59- Logger .debug ("storage root path: " + path );
59+ LogUtils .debug ("storage root path: " + path );
6060 return path ;
6161 }
6262
@@ -70,7 +70,7 @@ public static int[] getPixels(Context ctx) {
7070 windowMgr .getDefaultDisplay ().getMetrics (dm );
7171 pixels [0 ] = dm .widthPixels ;
7272 pixels [1 ] = dm .heightPixels ;
73- Logger .debug ("width=" + pixels [0 ] + ", height=" + pixels [1 ]);
73+ LogUtils .debug ("width=" + pixels [0 ] + ", height=" + pixels [1 ]);
7474 return pixels ;// e.g. 720,1184
7575 }
7676
@@ -80,7 +80,7 @@ public static int[] getPixels(Context ctx) {
8080 public static int toPx (Context context , float dpValue ) {
8181 final float scale = context .getResources ().getDisplayMetrics ().density ;
8282 int pxValue = (int ) (dpValue * scale + 0.5f );
83- Logger .debug (dpValue + " dp == " + pxValue + " px" );
83+ LogUtils .debug (dpValue + " dp == " + pxValue + " px" );
8484 return pxValue ;
8585 }
8686
@@ -114,10 +114,10 @@ public static String toColorString(int color, boolean includeAlpha) {
114114 String colorString ;
115115 if (includeAlpha ) {
116116 colorString = alpha + red + green + blue ;
117- Logger .debug (String .format ("%d to color string is %s" , color , colorString ));
117+ LogUtils .debug (String .format ("%d to color string is %s" , color , colorString ));
118118 } else {
119119 colorString = red + green + blue ;
120- Logger .debug (String .format ("%d to color string is %s%s%s%s, exclude alpha is %s" , color , alpha , red , green , blue , colorString ));
120+ LogUtils .debug (String .format ("%d to color string is %s%s%s%s, exclude alpha is %s" , color , alpha , red , green , blue , colorString ));
121121 }
122122 return colorString ;
123123 }
@@ -210,7 +210,7 @@ public static int calculateHeight(View view) {
210210 totalHeight += convertView .getMeasuredHeight ();
211211 }
212212 totalHeight += listView .getDividerHeight () * (count - 1 );
213- Logger .debug ("ListView height is " + totalHeight + " dp" );
213+ LogUtils .debug ("ListView height is " + totalHeight + " dp" );
214214 }
215215 } else if (view instanceof ScrollView ) {
216216 ScrollView scrollView = (ScrollView ) view ;
@@ -227,13 +227,13 @@ public static int calculateHeight(View view) {
227227 layout .measure (widthMeasureSpec , heightMeasureSpec );
228228 totalHeight += layout .getMeasuredHeight ();
229229 }
230- Logger .debug ("LinearLayout height is " + totalHeight + " dp" );
230+ LogUtils .debug ("LinearLayout height is " + totalHeight + " dp" );
231231 } else {
232232 view .measure (widthMeasureSpec , heightMeasureSpec );
233233 totalHeight += view .getMeasuredHeight ();
234- Logger .debug ("View height is " + totalHeight + "" );
234+ LogUtils .debug ("View height is " + totalHeight + "" );
235235 }
236- Logger .debug ("View total height is " + totalHeight + "" );
236+ LogUtils .debug ("View total height is " + totalHeight + "" );
237237 return totalHeight ;
238238 }
239239
0 commit comments