commit | d14cb123f8d80896d568104f0f776be8cdc1aa60 | [log] [tgz] |
---|---|---|
author | Leon Scroggins <scroggo@google.com> | Wed Sep 29 16:01:48 2010 -0400 |
committer | Leon Scroggins <scroggo@google.com> | Wed Sep 29 16:01:48 2010 -0400 |
tree | 573b9c5f2c006afedbb60520a5a92d8297099592 | |
parent | d40ac1afadfbba82bc266eebc029f3c99884c9a3 [diff] |
Prevent a class cast exception. Change-Id: I823dbbd0a9dd6b32ec0d861dca3c04f07263ca9a
diff --git a/src/com/android/browser/AddBookmarkPage.java b/src/com/android/browser/AddBookmarkPage.java index a3cd688..9070218 100644 --- a/src/com/android/browser/AddBookmarkPage.java +++ b/src/com/android/browser/AddBookmarkPage.java
@@ -290,8 +290,9 @@ @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { + TextView tv = (TextView) view.findViewById(android.R.id.text1); // Switch to the folder that was clicked on. - descendInto(((TextView) view).getText().toString(), id); + descendInto(tv.getText().toString(), id); } /**