Skip to content

Commit 4852021

Browse files
author
Jon Miranda
committed
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
1 parent 125cf62 commit 4852021

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

core/java/android/view/ViewDebug.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,8 +1107,7 @@ private static void exportMethods(Context context, Object view, BufferedWriter o
11071107

11081108
exportUnrolledArray(context, out, property, array, valuePrefix, suffix);
11091109

1110-
// Probably want to return here, same as for fields.
1111-
return;
1110+
continue;
11121111
} else if (!returnType.isPrimitive()) {
11131112
if (property.deepExport()) {
11141113
dumpViewProperties(context, methodValue, out, prefix + property.prefix());
@@ -1187,8 +1186,7 @@ private static void exportFields(Context context, Object view, BufferedWriter ou
11871186

11881187
exportUnrolledArray(context, out, property, array, valuePrefix, suffix);
11891188

1190-
// We exit here!
1191-
return;
1189+
continue;
11921190
} else if (!type.isPrimitive()) {
11931191
if (property.deepExport()) {
11941192
dumpViewProperties(context, field.get(view), out, prefix +

0 commit comments

Comments
 (0)