From 12e6b843993f2d15f56016bcdd7b9ae2c332dbf6 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Fri, 21 Nov 2014 02:30:05 +0100 Subject: [PATCH] New pattern for numbers: ###.## --- .../gumartinm/weather/information/fragment/current/CurrentFragment.java | 2 +- .../weather/information/fragment/overview/OverviewFragment.java | 2 +- .../weather/information/fragment/specific/SpecificFragment.java | 2 +- .../weather/information/notification/NotificationIntentService.java | 2 +- .../name/gumartinm/weather/information/widget/WidgetIntentService.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/name/gumartinm/weather/information/fragment/current/CurrentFragment.java b/app/src/main/java/name/gumartinm/weather/information/fragment/current/CurrentFragment.java index 6f4871f..b0791a9 100644 --- a/app/src/main/java/name/gumartinm/weather/information/fragment/current/CurrentFragment.java +++ b/app/src/main/java/name/gumartinm/weather/information/fragment/current/CurrentFragment.java @@ -225,7 +225,7 @@ public class CurrentFragment extends Fragment { // 2. Formatters final DecimalFormat numberFormatter = (DecimalFormat) NumberFormat.getNumberInstance(Locale.US); - numberFormatter.applyPattern("####.###"); + numberFormatter.applyPattern("###.##"); final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss", Locale.US); diff --git a/app/src/main/java/name/gumartinm/weather/information/fragment/overview/OverviewFragment.java b/app/src/main/java/name/gumartinm/weather/information/fragment/overview/OverviewFragment.java index 30f4acb..e3c6418 100644 --- a/app/src/main/java/name/gumartinm/weather/information/fragment/overview/OverviewFragment.java +++ b/app/src/main/java/name/gumartinm/weather/information/fragment/overview/OverviewFragment.java @@ -222,7 +222,7 @@ public class OverviewFragment extends ListFragment { // 3. Formatters final DecimalFormat tempFormatter = (DecimalFormat) NumberFormat.getNumberInstance(Locale.US); - tempFormatter.applyPattern("#####.##"); + tempFormatter.applyPattern("###.##"); final SimpleDateFormat dayNameFormatter = new SimpleDateFormat("EEE", Locale.US); final SimpleDateFormat monthAndDayNumberormatter = new SimpleDateFormat("MMM d", Locale.US); diff --git a/app/src/main/java/name/gumartinm/weather/information/fragment/specific/SpecificFragment.java b/app/src/main/java/name/gumartinm/weather/information/fragment/specific/SpecificFragment.java index a1c861e..09bbf42 100644 --- a/app/src/main/java/name/gumartinm/weather/information/fragment/specific/SpecificFragment.java +++ b/app/src/main/java/name/gumartinm/weather/information/fragment/specific/SpecificFragment.java @@ -128,7 +128,7 @@ public class SpecificFragment extends Fragment { // 2. Formatters final DecimalFormat numberFormatter = (DecimalFormat) NumberFormat.getNumberInstance(Locale.US); - numberFormatter.applyPattern("#####.#####"); + numberFormatter.applyPattern("###.##"); // 3. Prepare data for UI. diff --git a/app/src/main/java/name/gumartinm/weather/information/notification/NotificationIntentService.java b/app/src/main/java/name/gumartinm/weather/information/notification/NotificationIntentService.java index afe084b..0c52886 100644 --- a/app/src/main/java/name/gumartinm/weather/information/notification/NotificationIntentService.java +++ b/app/src/main/java/name/gumartinm/weather/information/notification/NotificationIntentService.java @@ -123,7 +123,7 @@ public class NotificationIntentService extends IntentService { // 2. Formatters final DecimalFormat tempFormatter = (DecimalFormat) NumberFormat.getNumberInstance(Locale.US); - tempFormatter.applyPattern("#####.##"); + tempFormatter.applyPattern("###.##"); // 3. Prepare data for RemoteViews. diff --git a/app/src/main/java/name/gumartinm/weather/information/widget/WidgetIntentService.java b/app/src/main/java/name/gumartinm/weather/information/widget/WidgetIntentService.java index 1c24dfa..761fdf5 100644 --- a/app/src/main/java/name/gumartinm/weather/information/widget/WidgetIntentService.java +++ b/app/src/main/java/name/gumartinm/weather/information/widget/WidgetIntentService.java @@ -239,7 +239,7 @@ public class WidgetIntentService extends IntentService { // 3. Formatters final DecimalFormat tempFormatter = (DecimalFormat) NumberFormat.getNumberInstance(Locale.US); - tempFormatter.applyPattern("#####.#####"); + tempFormatter.applyPattern("###.##"); // 4. Prepare data for RemoteViews. -- 2.1.4