From 4e4e910a81f1029d86d94b172ee5810674da15d9 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sat, 23 May 2015 12:59:14 -0700 Subject: Force use of local debug.keystore --- app/build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app') diff --git a/app/build.gradle b/app/build.gradle index 97e72a11..0eeaec1d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -23,6 +23,12 @@ android { lintOptions { checkReleaseBuilds false } + + signingConfigs { + debug { + storeFile file('../debug.keystore') + } + } } dependencies { -- cgit v1.2.3 From 329330f7b18b1d88236a234bb15cef22529aef02 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sat, 23 May 2015 13:03:20 -0700 Subject: #511 Cap isPastCutoff to a max of 10 minutes (for very large podcasts) --- app/src/main/java/github/daneren2005/dsub/service/DownloadService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app') 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 c0268933..9e57f5b0 100644 --- a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java +++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java @@ -2104,7 +2104,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 -- cgit v1.2.3 From 04bf2e345beae36a512aa50b5b920a4af9345743 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Fri, 19 Jun 2015 08:24:21 -0700 Subject: Add warning log when failing to refresh album list --- .../main/java/github/daneren2005/dsub/service/CachedMusicService.java | 1 + 1 file changed, 1 insertion(+) (limited to 'app') 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) { -- cgit v1.2.3