From 5d5b110ca0f8d7d5e599a401a7931a5cd78e9ffc Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sat, 12 Dec 2015 15:55:50 -0800 Subject: Fix songs with a db entry but never been played showing as epoc --- .../main/java/github/daneren2005/dsub/fragments/SubsonicFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])); } -- cgit v1.2.3