aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-12-02 23:06:27 -0800
committerScott Jackson <daneren2005@gmail.com>2013-12-02 23:06:27 -0800
commite91bd414058507f80732e468ce7d7df1b53cd96d (patch)
tree86bfae426bf1f3ab8be2dcaf5d9a6efb9567c9d6
parent154109c7cb0b1c7f4b5a29e940715987a53ee08f (diff)
downloaddsub-e91bd414058507f80732e468ce7d7df1b53cd96d.tar.gz
dsub-e91bd414058507f80732e468ce7d7df1b53cd96d.tar.bz2
dsub-e91bd414058507f80732e468ce7d7df1b53cd96d.zip
Fix a album sometimes being a song you are "listening" to
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
index a8169a1e..328e25a1 100644
--- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
@@ -566,7 +566,10 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter
int count = entryList.getCount();
for (int i = 0; i < count; i++) {
if (entryList.isItemChecked(i)) {
- songs.add((MusicDirectory.Entry) entryList.getItemAtPosition(i));
+ MusicDirectory.Entry entry = (MusicDirectory.Entry) entryList.getItemAtPosition(i);
+ if(!entry.isDirectory()) {
+ songs.add(entry);
+ }
}
}
return songs;