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