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);
     }
 
     /**