summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jon Miranda <jonmiranda@google.com> 2014-08-08 10:49:47 -0700
committer Jon Miranda <jonmiranda@google.com> 2014-08-12 15:45:57 -0700
commit48520210958b07d99791779abd52ba8034f3aa21 (patch)
tree7e409d3f4333de0028e4880e1e8aa948dd0a69df
parent125cf62d596f544db4cb7b314f94c2757f5afaa7 (diff)
Changed flow in export methods to continue through the loop if it encounters
an int[] return type. There are two such instances: 1. "private int[] mRules" within RelativeLayout LayoutParams. 2. "public int[] getLocationOnScreen" in View. When I added #2, we noticed missing annotated fields/methods in Hierarchy Viewer, but #1 also caused the same issue (mainly not exporting alignWithParent field) Bug: 16844914 Change-Id: I0d83a4391aa0565897cd7f0523995c97b7a4976d
-rw-r--r--core/java/android/view/ViewDebug.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/java/android/view/ViewDebug.java b/core/java/android/view/ViewDebug.java
index 0b15ba790201..4d9a8ccd9aad 100644
--- a/core/java/android/view/ViewDebug.java
+++ b/core/java/android/view/ViewDebug.java
@@ -1107,8 +1107,7 @@ public class ViewDebug {
exportUnrolledArray(context, out, property, array, valuePrefix, suffix);
- // Probably want to return here, same as for fields.
- return;
+ continue;
} else if (!returnType.isPrimitive()) {
if (property.deepExport()) {
dumpViewProperties(context, methodValue, out, prefix + property.prefix());
@@ -1187,8 +1186,7 @@ public class ViewDebug {
exportUnrolledArray(context, out, property, array, valuePrefix, suffix);
- // We exit here!
- return;
+ continue;
} else if (!type.isPrimitive()) {
if (property.deepExport()) {
dumpViewProperties(context, field.get(view), out, prefix +