Merge "Browser: fix force close when remove a history"
diff --git a/src/com/android/browser/BrowserSnapshotPage.java b/src/com/android/browser/BrowserSnapshotPage.java
index b0d8205..0d36c48 100644
--- a/src/com/android/browser/BrowserSnapshotPage.java
+++ b/src/com/android/browser/BrowserSnapshotPage.java
@@ -182,6 +182,9 @@
 
     @Override
     public boolean onContextItemSelected(MenuItem item) {
+        if (!(item.getMenuInfo() instanceof AdapterContextMenuInfo)) {
+            return false;
+        }
         if (item.getItemId() == R.id.delete_context_menu_id) {
             AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo();
             deleteSnapshot(info.id);