summaryrefslogtreecommitdiffstats
path: root/core/java/android/view/ViewDebug.java
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2012-10-03 14:53:25 -0700
committerRomain Guy <romainguy@google.com>2012-10-03 18:07:59 -0700
commitdfab363807b3b44be4032e410f016e0a0d018426 (patch)
tree36321005bce97e4177e84b628371268a2b84490b /core/java/android/view/ViewDebug.java
parenta762dfc68afbbfd439af064e2dc833d712c1eda8 (diff)
downloadframeworks_base-dfab363807b3b44be4032e410f016e0a0d018426.zip
frameworks_base-dfab363807b3b44be4032e410f016e0a0d018426.tar.gz
frameworks_base-dfab363807b3b44be4032e410f016e0a0d018426.tar.bz2
Fix rendering artifacts on tiled renderers
Bug #7275145 This change fixes ViewRoot and adds extra debug information. It does not solve the problem entirely. Another CL will. Change-Id: I7e604ba38aad7f421769783dcbd998d6905ab2d9
Diffstat (limited to 'core/java/android/view/ViewDebug.java')
-rw-r--r--core/java/android/view/ViewDebug.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/core/java/android/view/ViewDebug.java b/core/java/android/view/ViewDebug.java
index c013d85..023e58f 100644
--- a/core/java/android/view/ViewDebug.java
+++ b/core/java/android/view/ViewDebug.java
@@ -923,8 +923,12 @@ public class ViewDebug {
private static void dumpViewProperties(Context context, Object view,
BufferedWriter out, String prefix) throws IOException {
- Class<?> klass = view.getClass();
+ if (view == null) {
+ out.write(prefix + "=4,null ");
+ return;
+ }
+ Class<?> klass = view.getClass();
do {
exportFields(context, view, out, klass, prefix);
exportMethods(context, view, out, klass, prefix);
@@ -1064,8 +1068,8 @@ public class ViewDebug {
return;
} else if (!type.isPrimitive()) {
if (property.deepExport()) {
- dumpViewProperties(context, field.get(view), out, prefix
- + property.prefix());
+ dumpViewProperties(context, field.get(view), out, prefix +
+ property.prefix());
continue;
}
}