diff options
author | Leon Scroggins <scroggo@google.com> | 2010-09-29 16:01:48 -0400 |
---|---|---|
committer | Leon Scroggins <scroggo@google.com> | 2010-09-29 16:01:48 -0400 |
commit | d14cb123f8d80896d568104f0f776be8cdc1aa60 (patch) | |
tree | 573b9c5f2c006afedbb60520a5a92d8297099592 /src/com/android/browser/AddBookmarkPage.java | |
parent | d40ac1afadfbba82bc266eebc029f3c99884c9a3 (diff) | |
download | packages_apps_browser-d14cb123f8d80896d568104f0f776be8cdc1aa60.zip packages_apps_browser-d14cb123f8d80896d568104f0f776be8cdc1aa60.tar.gz packages_apps_browser-d14cb123f8d80896d568104f0f776be8cdc1aa60.tar.bz2 |
Prevent a class cast exception.
Change-Id: I823dbbd0a9dd6b32ec0d861dca3c04f07263ca9a
Diffstat (limited to 'src/com/android/browser/AddBookmarkPage.java')
-rw-r--r-- | src/com/android/browser/AddBookmarkPage.java | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ public class AddBookmarkPage extends Activity @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); } /** |