aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/build.gradle6
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/CachedMusicService.java1
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/DownloadService.java3
3 files changed, 9 insertions, 1 deletions
diff --git a/app/build.gradle b/app/build.gradle
index cdc1152b..c09f0f91 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -23,6 +23,12 @@ android {
lintOptions {
checkReleaseBuilds false
}
+
+ signingConfigs {
+ debug {
+ storeFile file('../debug.keystore')
+ }
+ }
}
dependencies {
diff --git a/app/src/main/java/github/daneren2005/dsub/service/CachedMusicService.java b/app/src/main/java/github/daneren2005/dsub/service/CachedMusicService.java
index f161cac6..3bc7f2a3 100644
--- a/app/src/main/java/github/daneren2005/dsub/service/CachedMusicService.java
+++ b/app/src/main/java/github/daneren2005/dsub/service/CachedMusicService.java
@@ -489,6 +489,7 @@ public class CachedMusicService implements MusicService {
FileUtil.serialize(context, dir, getCacheName(context, type, Integer.toString(offset)));
return dir;
} catch(IOException e) {
+ Log.w(TAG, "Failed to refresh album list: ", e);
MusicDirectory dir = FileUtil.deserialize(context, getCacheName(context, type, Integer.toString(offset)), MusicDirectory.class);
if(dir == null) {
diff --git a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
index 40521051..bf68c450 100644
--- a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
+++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
@@ -2111,7 +2111,8 @@ public class DownloadService extends Service {
return false;
}
- int cutoffPoint = (int) (duration * DELETE_CUTOFF);
+ // Make cutoff a maximum of 10 minutes
+ int cutoffPoint = Math.min((int) (duration * DELETE_CUTOFF), 10 * 60 * 1000);
boolean isPastCutoff = duration > 0 && position > cutoffPoint;
// Check to make sure song isn't within 10 seconds of where it was created