Panagiotis Triantafyllou

minor fix

...@@ -184,7 +184,7 @@ public class LoyaltyHistoryActivity extends Activity implements View.OnClickList ...@@ -184,7 +184,7 @@ public class LoyaltyHistoryActivity extends Activity implements View.OnClickList
184 mRlUnifiedBanner.setOnClickListener(this); 184 mRlUnifiedBanner.setOnClickListener(this);
185 185
186 /** First Banner */ 186 /** First Banner */
187 - String badgeValueFirst = String.format(Locale.US, "%.02f", WarplyManagerHelper.getDealsCouponsSum()); 187 + String badgeValueFirst = String.format(Locale.GERMAN, "%.02f", WarplyManagerHelper.getDealsCouponsSum());
188 mTvDealsValue.setText(String.format(getString(R.string.cos_value), badgeValueFirst)); 188 mTvDealsValue.setText(String.format(getString(R.string.cos_value), badgeValueFirst));
189 if (String.valueOf(WarplyManagerHelper.getDealsCouponsSum()).length() >= 3) { 189 if (String.valueOf(WarplyManagerHelper.getDealsCouponsSum()).length() >= 3) {
190 mTvDealsValue.setTextSize(12); 190 mTvDealsValue.setTextSize(12);
...@@ -201,7 +201,7 @@ public class LoyaltyHistoryActivity extends Activity implements View.OnClickList ...@@ -201,7 +201,7 @@ public class LoyaltyHistoryActivity extends Activity implements View.OnClickList
201 201
202 /** Second Banner */ 202 /** Second Banner */
203 if (WarplyManagerHelper.getLoyaltyBadge() != null && (WarplyManagerHelper.getLoyaltyBadge().getCouponCount() > 0 || WarplyManagerHelper.getLoyaltyBadge().getCouponCount() == 0)) { 203 if (WarplyManagerHelper.getLoyaltyBadge() != null && (WarplyManagerHelper.getLoyaltyBadge().getCouponCount() > 0 || WarplyManagerHelper.getLoyaltyBadge().getCouponCount() == 0)) {
204 - String badgeValue = String.format(Locale.US,"%.02f", WarplyManagerHelper.getLoyaltyBadge().getValue()); 204 + String badgeValue = String.format(Locale.GERMAN,"%.02f", WarplyManagerHelper.getLoyaltyBadge().getValue());
205 mTvGiftsValue.setText(String.format(getString(R.string.cos_value), badgeValue)); 205 mTvGiftsValue.setText(String.format(getString(R.string.cos_value), badgeValue));
206 if (String.valueOf(WarplyManagerHelper.getLoyaltyBadge().getValue()).length() >= 3) { 206 if (String.valueOf(WarplyManagerHelper.getLoyaltyBadge().getValue()).length() >= 3) {
207 mTvGiftsValue.setTextSize(12); 207 mTvGiftsValue.setTextSize(12);
...@@ -242,7 +242,7 @@ public class LoyaltyHistoryActivity extends Activity implements View.OnClickList ...@@ -242,7 +242,7 @@ public class LoyaltyHistoryActivity extends Activity implements View.OnClickList
242 } 242 }
243 243
244 mFavValue += countValue; 244 mFavValue += countValue;
245 - String badgeValue = String.format(Locale.US,"%.02f", countValue); 245 + String badgeValue = String.format(Locale.GERMAN,"%.02f", countValue);
246 mTvMarketValue.setText(String.format(getString(R.string.cos_value), badgeValue)); 246 mTvMarketValue.setText(String.format(getString(R.string.cos_value), badgeValue));
247 if (String.valueOf(countValue).length() >= 3) { 247 if (String.valueOf(countValue).length() >= 3) {
248 mTvMarketValue.setTextSize(12); 248 mTvMarketValue.setTextSize(12);
...@@ -255,7 +255,7 @@ public class LoyaltyHistoryActivity extends Activity implements View.OnClickList ...@@ -255,7 +255,7 @@ public class LoyaltyHistoryActivity extends Activity implements View.OnClickList
255 sBuilderThird.setSpan(typefaceBoldSpanThird, 24, 24 + badgeValue.length() + 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); 255 sBuilderThird.setSpan(typefaceBoldSpanThird, 24, 24 + badgeValue.length() + 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
256 mTvMarketAll.setText(sBuilderThird, TextView.BufferType.SPANNABLE); 256 mTvMarketAll.setText(sBuilderThird, TextView.BufferType.SPANNABLE);
257 } else { 257 } else {
258 - String badgeValue = String.format(Locale.US,"%.02f", 0.0f); 258 + String badgeValue = String.format(Locale.GERMAN,"%.02f", 0.0f);
259 mTvMarketValue.setText(String.format(getString(R.string.cos_value), badgeValue)); 259 mTvMarketValue.setText(String.format(getString(R.string.cos_value), badgeValue));
260 SpannableStringBuilder sBuilderThird = new SpannableStringBuilder(); 260 SpannableStringBuilder sBuilderThird = new SpannableStringBuilder();
261 sBuilderThird.append(String.format(getString(R.string.cos_supermarket_win), badgeValue)); 261 sBuilderThird.append(String.format(getString(R.string.cos_supermarket_win), badgeValue));
...@@ -266,7 +266,7 @@ public class LoyaltyHistoryActivity extends Activity implements View.OnClickList ...@@ -266,7 +266,7 @@ public class LoyaltyHistoryActivity extends Activity implements View.OnClickList
266 /** Third Expandable Banner */ 266 /** Third Expandable Banner */
267 267
268 /** Sum Banner */ 268 /** Sum Banner */
269 - String allValue = String.format(Locale.US,"%.02f", mFavValue); 269 + String allValue = String.format(Locale.GERMAN,"%.02f", mFavValue);
270 mTvFavValue.setText(String.format(getString(R.string.cos_value), allValue)); 270 mTvFavValue.setText(String.format(getString(R.string.cos_value), allValue));
271 /** Sum Banner */ 271 /** Sum Banner */
272 } 272 }
......