diff options
author | Camil Staps | 2015-05-10 19:24:23 +0300 |
---|---|---|
committer | Camil Staps | 2015-05-10 19:24:23 +0300 |
commit | 9b020795587017792b8d05ac0de88eea84be4917 (patch) | |
tree | b0c178b0aa32926939e6e91ca5c1183794cab9a5 | |
parent | Added first, basic version of daily reading widget, with non-working-yet sett... (diff) |
Probable bugfix where readings were not offline available (they were automatically removed on startup)
-rw-r--r-- | app/src/main/java/com/camilstaps/taize/Taize.java | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/src/main/java/com/camilstaps/taize/Taize.java b/app/src/main/java/com/camilstaps/taize/Taize.java index 32619ea..692ecc2 100644 --- a/app/src/main/java/com/camilstaps/taize/Taize.java +++ b/app/src/main/java/com/camilstaps/taize/Taize.java @@ -347,14 +347,6 @@ public class Taize { if (reading.getDate().diffDays(new Date()) > MAX_DIFFDATE_READING) { // Remove too old / too new iterator.remove(); - } else { - // Remove duplicates - for (DailyReading r : set) { - if (r.getDate().equals(reading.getDate())) { - iterator.remove(); - break; - } - } } } DatedStringPreferenceSet.put(context, key, (Set) set); |