From cdee446075811e871fc2af295377bd99c100d16d Mon Sep 17 00:00:00 2001 From: Adam Powell Date: Thu, 2 Sep 2010 17:13:24 -0700 Subject: [PATCH] Fix bug 2963261 Change-Id: I31952474cf9d31fff78436461aeb7d0ad34d9068 --- core/java/android/widget/ListPopupWindow.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/java/android/widget/ListPopupWindow.java b/core/java/android/widget/ListPopupWindow.java index 12ff2921dc4ed..b464fef635c11 100644 --- a/core/java/android/widget/ListPopupWindow.java +++ b/core/java/android/widget/ListPopupWindow.java @@ -706,7 +706,8 @@ public class ListPopupWindow { if (mItemClickListener != null) { final DropDownListView list = mDropDownList; final View child = list.getChildAt(position - list.getFirstVisiblePosition()); - mItemClickListener.onItemClick(list, child, position, child.getId()); + final ListAdapter adapter = list.getAdapter(); + mItemClickListener.onItemClick(list, child, position, adapter.getItemId(position)); } return true; }