From 49081bdcf11d5a1659adc1aecc06fb00b8f5b906 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/Android/WeatherInformation/src/de/example/exampletdd/fragment/current/CurrentFragment.java b/Android/WeatherInformation/src/de/example/exampletdd/fragment/current/CurrentFragment.java index b9737a7..502d95d 100644 --- a/Android/WeatherInformation/src/de/example/exampletdd/fragment/current/CurrentFragment.java +++ b/Android/WeatherInformation/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/Android/WeatherInformation/src/de/example/exampletdd/fragment/overview/OverviewFragment.java b/Android/WeatherInformation/src/de/example/exampletdd/fragment/overview/OverviewFragment.java index 28da6cf..edc0d7a 100644 --- a/Android/WeatherInformation/src/de/example/exampletdd/fragment/overview/OverviewFragment.java +++ b/Android/WeatherInformation/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