From 57bf3d8e5c01d5deffa7b65584d5c3132ef2a7c5 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Fri, 16 Jan 2015 12:46:29 -0800 Subject: Fix crash on selecting context items with headers --- src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/github') diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java index ba884503..78c1a773 100644 --- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java +++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java @@ -373,7 +373,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter Object selectedItem; int headers = entryList.getHeaderViewsCount(); if(albumContext) { - selectedItem = albums.get(info.position); + selectedItem = albumList.getItemAtPosition(info.position); } else { if(info.position == 0) { return false; -- cgit v1.2.3