From 4a7abadebc1ab8da1702ae58670ca1196e1dcf2c Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 16 May 2013 19:41:36 -0700 Subject: Added support for release date to changelog --- .../github/daneren2005/dsub/view/ChangeLog.java | 23 +++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'subsonic-android/src') diff --git a/subsonic-android/src/github/daneren2005/dsub/view/ChangeLog.java b/subsonic-android/src/github/daneren2005/dsub/view/ChangeLog.java index 630fb021..b847733e 100644 --- a/subsonic-android/src/github/daneren2005/dsub/view/ChangeLog.java +++ b/subsonic-android/src/github/daneren2005/dsub/view/ChangeLog.java @@ -80,7 +80,8 @@ public class ChangeLog { * Default CSS styles used to format the change log. */ private static final String DEFAULT_CSS = - "h1 { margin-left: 0px; font-size: 1.2em;}" + + "div.title { margin-left: 0px; font-size: 1.2em; text-align: center;}" + + "div.subtitle {margin-left: 0px; font-size: .8em; text-align: center;}" + "li { margin-left: 0px;}" + "ul { padding-left: 2em;}"; @@ -125,6 +126,7 @@ public class ChangeLog { static final String NAME = "release"; static final String ATTRIBUTE_VERSION = "version"; static final String ATTRIBUTE_VERSION_CODE = "versioncode"; + static final String ATTRIBUTE_RELEASE_DATE = "releasedate"; } /** @@ -406,9 +408,15 @@ public class ChangeLog { // if necessary. ReleaseItem release = changelog.get(key, defaultChangelog.get(key)); - sb.append("

"); + sb.append("
"); sb.append(String.format(versionFormat, release.versionName)); - sb.append("