aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-12-14 18:03:12 -0800
committerScott Jackson <daneren2005@gmail.com>2015-12-14 18:03:12 -0800
commit257c59c85c0da4ea597bd70b52e2a7f26431dd23 (patch)
tree539bffd4d48e1a6ff278740d7ba275a3f37195c0 /app/src/main/java/github
parent6cfb5f49d7d04e85dcb9489bfc5d3516e2250a27 (diff)
downloaddsub-257c59c85c0da4ea597bd70b52e2a7f26431dd23.tar.gz
dsub-257c59c85c0da4ea597bd70b52e2a7f26431dd23.tar.bz2
dsub-257c59c85c0da4ea597bd70b52e2a7f26431dd23.zip
Show the complete date for last played if higher than last played date
Diffstat (limited to 'app/src/main/java/github')
-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 88c8363b..c503ec6c 100644
--- a/app/src/main/java/github/daneren2005/dsub/fragments/SubsonicFragment.java
+++ b/app/src/main/java/github/daneren2005/dsub/fragments/SubsonicFragment.java
@@ -1298,7 +1298,7 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
Long[] dates = SongDBHandler.getHandler(context).getLastPlayed(song);
if(dates != null && dates[0] != null && dates[0] > 0) {
headers.add(R.string.details_last_played);
- details.add(Util.formatDate(dates[0]));
+ details.add(Util.formatDate((dates[1] != null && dates[1] > dates[0]) ? dates[1] : dates[0]));
}
} catch(Exception e) {
Log.e(TAG, "Failed to get last played", e);