From 65647b16ba9ef272775f3507a9ced412a1957f63 Mon Sep 17 00:00:00 2001 From: "gu.martinm@gmail.com" Date: Tue, 23 Sep 2014 20:15:11 +0200 Subject: [PATCH] WeatherInformation: TODO static resource fresh time --- src/de/example/exampletdd/fragment/current/CurrentFragment.java | 1 + src/de/example/exampletdd/fragment/overview/OverviewFragment.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/de/example/exampletdd/fragment/current/CurrentFragment.java b/src/de/example/exampletdd/fragment/current/CurrentFragment.java index b9737a7..502d95d 100644 --- a/src/de/example/exampletdd/fragment/current/CurrentFragment.java +++ b/src/de/example/exampletdd/fragment/current/CurrentFragment.java @@ -318,6 +318,7 @@ public class CurrentFragment extends Fragment { } final Date currentTime = new Date(); + // TODO: static resource instead of 120000L if (((currentTime.getTime() - lastUpdate.getTime())) < 120000L) { return true; } diff --git a/src/de/example/exampletdd/fragment/overview/OverviewFragment.java b/src/de/example/exampletdd/fragment/overview/OverviewFragment.java index 28da6cf..edc0d7a 100644 --- a/src/de/example/exampletdd/fragment/overview/OverviewFragment.java +++ b/src/de/example/exampletdd/fragment/overview/OverviewFragment.java @@ -295,6 +295,7 @@ public class OverviewFragment extends ListFragment { } final Date currentTime = new Date(); + // TODO: static resource instead of 120000L if (((currentTime.getTime() - lastUpdate.getTime())) < 120000L) { return true; } -- 2.1.4