New pattern for numbers: ###.##
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Fri, 21 Nov 2014 01:30:05 +0000 (02:30 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Fri, 21 Nov 2014 01:30:05 +0000 (02:30 +0100)
app/src/main/java/name/gumartinm/weather/information/fragment/current/CurrentFragment.java
app/src/main/java/name/gumartinm/weather/information/fragment/overview/OverviewFragment.java
app/src/main/java/name/gumartinm/weather/information/fragment/specific/SpecificFragment.java
app/src/main/java/name/gumartinm/weather/information/notification/NotificationIntentService.java
app/src/main/java/name/gumartinm/weather/information/widget/WidgetIntentService.java

index 6f4871f..b0791a9 100644 (file)
@@ -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);
 
         
index 30f4acb..e3c6418 100644 (file)
@@ -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);
 
index a1c861e..09bbf42 100644 (file)
@@ -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.
index afe084b..0c52886 100644 (file)
@@ -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.
index 1c24dfa..761fdf5 100644 (file)
@@ -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.