diff options
author | John Reck <jreck@google.com> | 2012-05-04 13:53:25 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-05-04 13:53:25 -0700 |
commit | 9ee87d9ce5aae1460f53bea66bfcafd3671505a0 (patch) | |
tree | 8b866f9ad37661878944ed4a51c6d155fefecb75 /src/com/android/browser/view | |
parent | b0fb2baae970c52b0dcf2f0677df5d89078f1480 (diff) | |
download | packages_apps_browser-9ee87d9ce5aae1460f53bea66bfcafd3671505a0.zip packages_apps_browser-9ee87d9ce5aae1460f53bea66bfcafd3671505a0.tar.gz packages_apps_browser-9ee87d9ce5aae1460f53bea66bfcafd3671505a0.tar.bz2 |
Fix getItemId()
Bug: 6446119
Change-Id: If8c13c9f2cb9b93c6f3575f12111059aeeacd5cb
Diffstat (limited to 'src/com/android/browser/view')
-rw-r--r-- | src/com/android/browser/view/BookmarkExpandableView.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/browser/view/BookmarkExpandableView.java b/src/com/android/browser/view/BookmarkExpandableView.java index 095bb7b..7badaf5 100644 --- a/src/com/android/browser/view/BookmarkExpandableView.java +++ b/src/com/android/browser/view/BookmarkExpandableView.java @@ -228,7 +228,7 @@ public class BookmarkExpandableView extends ExpandableListView || mAdapter.mChildren.get(groupPosition).getCount() <= childPosition) { return; } - long id = (Long) v.getTag(R.id.child_id); + long id = mAdapter.mChildren.get(groupPosition).getItemId(childPosition); if (mOnChildClickListener != null) { mOnChildClickListener.onChildClick(BookmarkExpandableView.this, v, groupPosition, childPosition, id); @@ -331,7 +331,6 @@ public class BookmarkExpandableView extends ExpandableListView View v = childAdapter.getView(realChildPosition, cv, row); v.setTag(R.id.group_position, groupPosition); v.setTag(R.id.child_position, realChildPosition); - v.setTag(R.id.child_id, childAdapter.getItemId(realChildPosition)); v.setOnClickListener(mChildClickListener); v.setLongClickable(mLongClickable); if (cv == null) { |