pressing the button of an itemlist item selected the wrong item if

'display only episodes' was turned on
This commit is contained in:
daniel oeh 2012-10-20 19:16:08 +02:00
parent 3f8f9be652
commit 48f1cd2b3b
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ public class ItemlistFragment extends SherlockListFragment implements
public void onClick(View v) { public void onClick(View v) {
int index = getListView().getPositionForView(v); int index = getListView().getPositionForView(v);
if (index != ListView.INVALID_POSITION) { if (index != ListView.INVALID_POSITION) {
FeedItem newSelectedItem = items.get(index); FeedItem newSelectedItem = fila.getItem(index);
if (newSelectedItem != selectedItem) { if (newSelectedItem != selectedItem) {
if (mActionMode != null) { if (mActionMode != null) {
mActionMode.finish(); mActionMode.finish();