aboutsummaryrefslogtreecommitdiffstats
path: root/chimpchat
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-05-24 12:22:46 -0700
committerandroid code review <noreply-gerritcodereview@google.com>2012-05-24 12:22:46 -0700
commit631b384f32459fd99b29d9843ea2dbd2b8e533c9 (patch)
tree78f74b9db3e68d828f49a2c69d525b76813f404b /chimpchat
parent6eadb5f645e9ff3a4bc9c7722b564d3d44ab5cca (diff)
parent653ef98d1ee34717ab319b34cde577cd2c7d859e (diff)
downloadsdk-631b384f32459fd99b29d9843ea2dbd2b8e533c9.zip
sdk-631b384f32459fd99b29d9843ea2dbd2b8e533c9.tar.gz
sdk-631b384f32459fd99b29d9843ea2dbd2b8e533c9.tar.bz2
Merge "Added check for mText property in getText()"
Diffstat (limited to 'chimpchat')
-rw-r--r--chimpchat/src/com/android/chimpchat/hierarchyviewer/HierarchyViewer.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/chimpchat/src/com/android/chimpchat/hierarchyviewer/HierarchyViewer.java b/chimpchat/src/com/android/chimpchat/hierarchyviewer/HierarchyViewer.java
index 6ad98ad..285d922 100644
--- a/chimpchat/src/com/android/chimpchat/hierarchyviewer/HierarchyViewer.java
+++ b/chimpchat/src/com/android/chimpchat/hierarchyviewer/HierarchyViewer.java
@@ -170,7 +170,11 @@ public class HierarchyViewer {
}
ViewNode.Property textProperty = node.namedProperties.get("text:mText");
if (textProperty == null) {
- throw new RuntimeException("No text property on node");
+ // give it another chance, ICS ViewServer returns mText
+ textProperty = node.namedProperties.get("mText");
+ if (textProperty == null) {
+ throw new RuntimeException("No text property on node");
+ }
}
return textProperty.value;
}