Merge change 8877 into donut
* changes: Remove warning in non-eng builds.
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
package android.view;
|
package android.view;
|
||||||
|
|
||||||
|
import android.util.Config;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.util.DisplayMetrics;
|
import android.util.DisplayMetrics;
|
||||||
import android.content.res.Resources;
|
import android.content.res.Resources;
|
||||||
@@ -140,8 +141,10 @@ public class ViewDebug {
|
|||||||
public static boolean consistencyCheckEnabled = false;
|
public static boolean consistencyCheckEnabled = false;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
if (Config.DEBUG) {
|
||||||
Debug.setFieldsOn(ViewDebug.class, true);
|
Debug.setFieldsOn(ViewDebug.class, true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This annotation can be used to mark fields and methods to be dumped by
|
* This annotation can be used to mark fields and methods to be dumped by
|
||||||
|
|||||||
Reference in New Issue
Block a user