aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-04-12 17:13:56 -0700
committerScott Jackson <daneren2005@gmail.com>2016-04-12 17:13:56 -0700
commit1730079b13f16679765e8473e8fb96c2bd34a3ea (patch)
treedbf94fae0e8218c3697b251485a6fe5f62b36f0c
parent33e621abdcb98e336cdbc38bb3d544e65a5c9090 (diff)
downloaddsub-1730079b13f16679765e8473e8fb96c2bd34a3ea.tar.gz
dsub-1730079b13f16679765e8473e8fb96c2bd34a3ea.tar.bz2
dsub-1730079b13f16679765e8473e8fb96c2bd34a3ea.zip
Auto: Remove self-imposed limit since too many items warning was taken out
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/AutoMediaBrowserService.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/service/AutoMediaBrowserService.java b/app/src/main/java/github/daneren2005/dsub/service/AutoMediaBrowserService.java
index 35d419bb..ece8ee95 100644
--- a/app/src/main/java/github/daneren2005/dsub/service/AutoMediaBrowserService.java
+++ b/app/src/main/java/github/daneren2005/dsub/service/AutoMediaBrowserService.java
@@ -58,7 +58,6 @@ public class AutoMediaBrowserService extends MediaBrowserService {
private static final String PODCAST_PREFIX = "po-";
private static final String ALBUM_TYPE_PREFIX = "ty-";
private static final String MUSIC_DIRECTORY_PREFIX = "md-";
- private static final int MAX_DOUBLE_LINE_ITEMS = 9;
private DownloadService downloadService;
private Handler handler = new Handler();
@@ -195,7 +194,7 @@ public class AutoMediaBrowserService extends MediaBrowserService {
albumListType = "newest";
}
- return musicService.getAlbumList(albumListType, MAX_DOUBLE_LINE_ITEMS, 0, true, downloadService, null);
+ return musicService.getAlbumList(albumListType, 20, 0, true, downloadService, null);
}
@Override
@@ -287,7 +286,6 @@ public class AutoMediaBrowserService extends MediaBrowserService {
protected void done(MusicDirectory podcasts) {
List<MediaBrowser.MediaItem> mediaItems = new ArrayList<>();
- int i = 0;
for(Entry entry: podcasts.getChildren(false, true)) {
PodcastEpisode podcast = (PodcastEpisode) entry;
Bundle podcastExtras = new Bundle();
@@ -302,10 +300,6 @@ public class AutoMediaBrowserService extends MediaBrowserService {
.build();
mediaItems.add(new MediaBrowser.MediaItem(description, MediaBrowser.MediaItem.FLAG_PLAYABLE));
- i++;
- if(i >= MAX_DOUBLE_LINE_ITEMS) {
- break;
- }
}
result.sendResult(mediaItems);