diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-03-04 22:16:57 +0100 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-03-04 22:16:57 +0100 |
commit | 132d3dc66e0dbf56277a1fee0619e5b7aa68f0a3 (patch) | |
tree | fd54a554d703c39ba307931b8d28d236604f26e2 | |
parent | 2fb4b5c96760524b138b14c79a4875041c8db11c (diff) | |
download | AntennaPod-132d3dc66e0dbf56277a1fee0619e5b7aa68f0a3.zip |
Possible fix of issue #365
-rw-r--r-- | src/de/danoeh/antennapod/util/flattr/FlattrUtils.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/de/danoeh/antennapod/util/flattr/FlattrUtils.java b/src/de/danoeh/antennapod/util/flattr/FlattrUtils.java index 215e67e55..423e98891 100644 --- a/src/de/danoeh/antennapod/util/flattr/FlattrUtils.java +++ b/src/de/danoeh/antennapod/util/flattr/FlattrUtils.java @@ -150,19 +150,14 @@ public class FlattrUtils { final int FLATTR_COUNT = 30; final int FLATTR_MAXPAGE = 5; - int page = 0; - do { - myFlattrs.ensureCapacity(FLATTR_COUNT*(page+1)); - + for (int page = 0; page < FLATTR_MAXPAGE; page++) { for (Flattr fl: fs.getMyFlattrs(FLATTR_COUNT, page)) { if (fl.getCreated().after(firstOfMonthDate)) myFlattrs.add(fl); else break; } - page++; } - while (myFlattrs.get(myFlattrs.size()-1).getCreated().after( firstOfMonthDate ) && page < FLATTR_MAXPAGE); if (AppConfig.DEBUG) { Log.d(TAG, "Got my flattrs list of length " + Integer.toString(myFlattrs.size()) + " comparison date" + firstOfMonthDate); |