summaryrefslogtreecommitdiff
path: root/core/java/android/view/ViewDebug.java
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2013-03-27 16:36:21 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2013-03-29 13:12:07 -0700
commitb365f91688dc081b3bcea82377ce0e94c09124ff (patch)
treec744d1b614b97bb4630aabbcc1966e80f1619d86 /core/java/android/view/ViewDebug.java
parentdac3fd9d90daffb4f6b08c788184ff38523348ba (diff)
Optimize ViewGroup.MarginLayoutParams memory and fix ViewDebug
- use private flag bit field for ViewGroup.MarginLayoutParams - make ViewDebug support "byte" type for FlagMapping Change-Id: Iff7c31544e3ce2d29919c9424425f2bf87042b8b
Diffstat (limited to 'core/java/android/view/ViewDebug.java')
-rw-r--r--core/java/android/view/ViewDebug.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/java/android/view/ViewDebug.java b/core/java/android/view/ViewDebug.java
index 987ff7857c32..40b6a0876d35 100644
--- a/core/java/android/view/ViewDebug.java
+++ b/core/java/android/view/ViewDebug.java
@@ -1054,8 +1054,7 @@ public class ViewDebug {
String categoryPrefix =
property.category().length() != 0 ? property.category() + ":" : "";
- if (type == int.class) {
-
+ if (type == int.class || type == byte.class) {
if (property.resolveId() && context != null) {
final int id = field.getInt(view);
fieldValue = resolveId(context, id);