From: gu.martinm@gmail.com Date: Tue, 23 Sep 2014 18:15:11 +0000 (+0200) Subject: WeatherInformation: TODO static resource fresh time X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=49081bdcf11d5a1659adc1aecc06fb00b8f5b906;p=JavaForFun WeatherInformation: TODO static resource fresh time --- 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; }