aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-12-12 15:55:50 -0800
committerScott Jackson <daneren2005@gmail.com>2015-12-12 15:55:50 -0800
commit5d5b110ca0f8d7d5e599a401a7931a5cd78e9ffc (patch)
tree51e5a5197801a703bcb08c0d224fb0f279b6576d /app/src/main/java/github/daneren2005
parent8a906018df507ca68b3df23a971f30f49cb9f610 (diff)
downloaddsub-5d5b110ca0f8d7d5e599a401a7931a5cd78e9ffc.tar.gz
dsub-5d5b110ca0f8d7d5e599a401a7931a5cd78e9ffc.tar.bz2
dsub-5d5b110ca0f8d7d5e599a401a7931a5cd78e9ffc.zip
Fix songs with a db entry but never been played showing as epoc
Diffstat (limited to 'app/src/main/java/github/daneren2005')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/SubsonicFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/SubsonicFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/SubsonicFragment.java
index 715263ff..88c8363b 100644
--- a/app/src/main/java/github/daneren2005/dsub/fragments/SubsonicFragment.java
+++ b/app/src/main/java/github/daneren2005/dsub/fragments/SubsonicFragment.java
@@ -1296,7 +1296,7 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
try {
Long[] dates = SongDBHandler.getHandler(context).getLastPlayed(song);
- if(dates != null) {
+ if(dates != null && dates[0] != null && dates[0] > 0) {
headers.add(R.string.details_last_played);
details.add(Util.formatDate(dates[0]));
}