aboutsummaryrefslogtreecommitdiffstats
path: root/hierarchyviewer
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2009-12-14 15:32:31 -0800
committerRomain Guy <romainguy@android.com>2009-12-14 15:32:31 -0800
commitf2eb43eb5620234cd36dd3a82a5f387fc06f2a0f (patch)
tree85a85f4edf537678ff4c080daf51e89972ccb325 /hierarchyviewer
parent416d64087c9de6e148d5397feed2a7e39b1ec554 (diff)
downloadsdk-f2eb43eb5620234cd36dd3a82a5f387fc06f2a0f.zip
sdk-f2eb43eb5620234cd36dd3a82a5f387fc06f2a0f.tar.gz
sdk-f2eb43eb5620234cd36dd3a82a5f387fc06f2a0f.tar.bz2
Fixes crash in HierarchyViewer when windows hash code exceed int capacity.
Bug: 2321018
Diffstat (limited to 'hierarchyviewer')
-rw-r--r--hierarchyviewer/src/com/android/hierarchyviewer/scene/WindowsLoader.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/hierarchyviewer/src/com/android/hierarchyviewer/scene/WindowsLoader.java b/hierarchyviewer/src/com/android/hierarchyviewer/scene/WindowsLoader.java
index ef93707..d06aca6 100644
--- a/hierarchyviewer/src/com/android/hierarchyviewer/scene/WindowsLoader.java
+++ b/hierarchyviewer/src/com/android/hierarchyviewer/scene/WindowsLoader.java
@@ -58,7 +58,7 @@ public class WindowsLoader {
int index = line.indexOf(' ');
if (index != -1) {
Window w = new Window(line.substring(index + 1),
- Integer.parseInt(line.substring(0, index), 16));
+ (int) Long.parseLong(line.substring(0, index), 16));
windows.add(w);
}
}