aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-05-28 20:44:39 -0700
committerScott Jackson <daneren2005@gmail.com>2013-05-28 20:44:39 -0700
commit061b5f8a6107a635ba669bdde1dbf07fae001d50 (patch)
tree8790d610bf4fb800f7f0453b556f694029bccea6 /subsonic-android/src/github
parent1046868832f1bb260fd0476abdac2797a149603b (diff)
downloaddsub-061b5f8a6107a635ba669bdde1dbf07fae001d50.tar.gz
dsub-061b5f8a6107a635ba669bdde1dbf07fae001d50.tar.bz2
dsub-061b5f8a6107a635ba669bdde1dbf07fae001d50.zip
cover.jpg -> albumart.jpg for better hiding in gallery
Diffstat (limited to 'subsonic-android/src/github')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/updates/Updater.java2
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/updates/Updater403.java (renamed from subsonic-android/src/github/daneren2005/dsub/updates/Updater373.java)12
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/util/Constants.java2
3 files changed, 8 insertions, 8 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/updates/Updater.java b/subsonic-android/src/github/daneren2005/dsub/updates/Updater.java
index c239fa43..60a17b67 100644
--- a/subsonic-android/src/github/daneren2005/dsub/updates/Updater.java
+++ b/subsonic-android/src/github/daneren2005/dsub/updates/Updater.java
@@ -43,7 +43,7 @@ public class Updater {
public void checkUpdates(Context context) {
this.context = context;
List<Updater> updaters = new ArrayList<Updater>();
- updaters.add(new Updater373());
+ updaters.add(new Updater403());
SharedPreferences prefs = Util.getPreferences(context);
int lastVersion = prefs.getInt(Constants.LAST_VERSION, 0);
diff --git a/subsonic-android/src/github/daneren2005/dsub/updates/Updater373.java b/subsonic-android/src/github/daneren2005/dsub/updates/Updater403.java
index b56c2731..17947ce5 100644
--- a/subsonic-android/src/github/daneren2005/dsub/updates/Updater373.java
+++ b/subsonic-android/src/github/daneren2005/dsub/updates/Updater403.java
@@ -29,16 +29,16 @@ import java.io.File;
*
* @author Scott
*/
-public class Updater373 extends Updater {
- public Updater373() {
- super(373);
- TAG = Updater373.class.getSimpleName();
+public class Updater403 extends Updater {
+ public Updater403() {
+ super(403);
+ TAG = Updater403.class.getSimpleName();
}
@Override
public void update(Context context) {
// Rename cover.jpeg to cover.jpg
- Log.i(TAG, "Running Updater373: updating cover.jpeg to cover.jpg");
+ Log.i(TAG, "Running Updater403: updating cover.jpg to albumart.jpg");
File dir = FileUtil.getMusicDirectory(context);
if(dir != null) {
moveArt(dir);
@@ -49,7 +49,7 @@ public class Updater373 extends Updater {
for(File file: dir.listFiles()) {
if(file.isDirectory()) {
moveArt(file);
- } else if("cover.jpeg".equals(file.getName())) {
+ } else if("cover.jpg".equals(file.getName()) || "cover.jpeg".equals(file.getName())) {
File renamed = new File(dir, Constants.ALBUM_ART_FILE);
file.renameTo(renamed);
}
diff --git a/subsonic-android/src/github/daneren2005/dsub/util/Constants.java b/subsonic-android/src/github/daneren2005/dsub/util/Constants.java
index 29c9a1aa..b1fcf5e6 100644
--- a/subsonic-android/src/github/daneren2005/dsub/util/Constants.java
+++ b/subsonic-android/src/github/daneren2005/dsub/util/Constants.java
@@ -118,7 +118,7 @@ public final class Constants {
// URL for project donations.
public static final String DONATION_URL = "http://subsonic.org/pages/android-donation.jsp";
- public static final String ALBUM_ART_FILE = "cover.jpg";
+ public static final String ALBUM_ART_FILE = "albumart.jpg";
private Constants() {
}