aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2015-05-10 19:24:23 +0300
committerCamil Staps2015-05-10 19:24:23 +0300
commit9b020795587017792b8d05ac0de88eea84be4917 (patch)
treeb0c178b0aa32926939e6e91ca5c1183794cab9a5
parentAdded 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.java8
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);