diff options
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/browser/view/BookmarkExpandableView.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/browser/view/BookmarkExpandableView.java b/src/com/android/browser/view/BookmarkExpandableView.java index 44a123a..4fb09c4 100644 --- a/src/com/android/browser/view/BookmarkExpandableView.java +++ b/src/com/android/browser/view/BookmarkExpandableView.java @@ -264,8 +264,15 @@ public class BookmarkExpandableView extends ExpandableListView @Override public void onClick(View v) { + if (v.getVisibility() != View.VISIBLE) { + return; + } int groupPosition = (Integer) v.getTag(R.id.group_position); int childPosition = (Integer) v.getTag(R.id.child_position); + if (mAdapter.getGroupCount() <= groupPosition + || mAdapter.mChildren.get(groupPosition).getCount() <= childPosition) { + return; + } long id = (Long) v.getTag(R.id.child_id); if (mOnChildClickListener != null) { mOnChildClickListener.onChildClick(BookmarkExpandableView.this, |