From 622e2f5d7635f3b8c970b42c1b9af02dc1c05284 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sun, 23 Nov 2014 23:42:35 +0100 Subject: [PATCH] following the OpenWeatherMap recommendations: update 1 time per 10 minutes http://openweathermap.org/appid --- .../weather/information/fragment/preferences/PreferencesFragment.java | 4 ---- app/src/main/res/values/arrays.xml | 2 -- app/src/main/res/values/strings.xml | 2 -- app/src/main/res/xml/weather_preferences.xml | 2 +- 4 files changed, 1 insertion(+), 9 deletions(-) diff --git a/app/src/main/java/name/gumartinm/weather/information/fragment/preferences/PreferencesFragment.java b/app/src/main/java/name/gumartinm/weather/information/fragment/preferences/PreferencesFragment.java index c3cfa17..7ff937f 100644 --- a/app/src/main/java/name/gumartinm/weather/information/fragment/preferences/PreferencesFragment.java +++ b/app/src/main/java/name/gumartinm/weather/information/fragment/preferences/PreferencesFragment.java @@ -125,8 +125,6 @@ public class PreferencesFragment extends PreferenceFragment implements OnSharedP humanValue = humanValues[4]; } else if (value.equals(values[5])) { humanValue = humanValues[5]; - } else if (value.equals(values[6])) { - humanValue = humanValues[6]; } connectionPref.setSummary(humanValue); @@ -299,8 +297,6 @@ public class PreferencesFragment extends PreferenceFragment implements OnSharedP humanValue = humanValues[4]; } else if (value.equals(values[5])) { humanValue = humanValues[5]; - } else if (value.equals(values[6])) { - humanValue = humanValues[6]; } connectionPref.setSummary(humanValue); return; diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index 09a2a49..3aa7a25 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -40,7 +40,6 @@ @string/weather_preferences_update_time_rate_human_value_one_day - @string/refresh_interval_300000 @string/refresh_interval_900000 @string/refresh_interval_1800000 @string/refresh_interval_3600000 @@ -49,7 +48,6 @@ @string/refresh_interval_86400000 - @string/weather_preferences_refresh_interval_human_value_five_minutes @string/weather_preferences_refresh_interval_human_value_fifteen_minutes @string/weather_preferences_refresh_interval_human_value_half_hour @string/weather_preferences_refresh_interval_human_value_one_hour diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d96f71d..dd68653 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -63,7 +63,6 @@ one hour half day one day - five minutes fifteen minutes half hour one hour @@ -156,7 +155,6 @@ 3600 43200 86400 - 300000 900000 1800000 3600000 diff --git a/app/src/main/res/xml/weather_preferences.xml b/app/src/main/res/xml/weather_preferences.xml index 81b3080..a38d7a0 100644 --- a/app/src/main/res/xml/weather_preferences.xml +++ b/app/src/main/res/xml/weather_preferences.xml @@ -29,7 +29,7 @@ android:entryValues="@array/weather_preferences_refresh_interval" android:selectable="true" android:persistent="true" - android:defaultValue="300000" + android:defaultValue="@string/refresh_interval_900000" android:summary="five minutes" />