From f2eb43eb5620234cd36dd3a82a5f387fc06f2a0f Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Mon, 14 Dec 2009 15:32:31 -0800 Subject: Fixes crash in HierarchyViewer when windows hash code exceed int capacity. Bug: 2321018 --- .../src/com/android/hierarchyviewer/scene/WindowsLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hierarchyviewer') 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); } } -- cgit v1.1