Panagiotis Triantafyllou

minor fix

......@@ -184,7 +184,7 @@ public class LoyaltyHistoryActivity extends Activity implements View.OnClickList
mRlUnifiedBanner.setOnClickListener(this);
/** First Banner */
String badgeValueFirst = String.format(Locale.US, "%.02f", WarplyManagerHelper.getDealsCouponsSum());
String badgeValueFirst = String.format(Locale.GERMAN, "%.02f", WarplyManagerHelper.getDealsCouponsSum());
mTvDealsValue.setText(String.format(getString(R.string.cos_value), badgeValueFirst));
if (String.valueOf(WarplyManagerHelper.getDealsCouponsSum()).length() >= 3) {
mTvDealsValue.setTextSize(12);
......@@ -201,7 +201,7 @@ public class LoyaltyHistoryActivity extends Activity implements View.OnClickList
/** Second Banner */
if (WarplyManagerHelper.getLoyaltyBadge() != null && (WarplyManagerHelper.getLoyaltyBadge().getCouponCount() > 0 || WarplyManagerHelper.getLoyaltyBadge().getCouponCount() == 0)) {
String badgeValue = String.format(Locale.US,"%.02f", WarplyManagerHelper.getLoyaltyBadge().getValue());
String badgeValue = String.format(Locale.GERMAN,"%.02f", WarplyManagerHelper.getLoyaltyBadge().getValue());
mTvGiftsValue.setText(String.format(getString(R.string.cos_value), badgeValue));
if (String.valueOf(WarplyManagerHelper.getLoyaltyBadge().getValue()).length() >= 3) {
mTvGiftsValue.setTextSize(12);
......@@ -242,7 +242,7 @@ public class LoyaltyHistoryActivity extends Activity implements View.OnClickList
}
mFavValue += countValue;
String badgeValue = String.format(Locale.US,"%.02f", countValue);
String badgeValue = String.format(Locale.GERMAN,"%.02f", countValue);
mTvMarketValue.setText(String.format(getString(R.string.cos_value), badgeValue));
if (String.valueOf(countValue).length() >= 3) {
mTvMarketValue.setTextSize(12);
......@@ -255,7 +255,7 @@ public class LoyaltyHistoryActivity extends Activity implements View.OnClickList
sBuilderThird.setSpan(typefaceBoldSpanThird, 24, 24 + badgeValue.length() + 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
mTvMarketAll.setText(sBuilderThird, TextView.BufferType.SPANNABLE);
} else {
String badgeValue = String.format(Locale.US,"%.02f", 0.0f);
String badgeValue = String.format(Locale.GERMAN,"%.02f", 0.0f);
mTvMarketValue.setText(String.format(getString(R.string.cos_value), badgeValue));
SpannableStringBuilder sBuilderThird = new SpannableStringBuilder();
sBuilderThird.append(String.format(getString(R.string.cos_supermarket_win), badgeValue));
......@@ -266,7 +266,7 @@ public class LoyaltyHistoryActivity extends Activity implements View.OnClickList
/** Third Expandable Banner */
/** Sum Banner */
String allValue = String.format(Locale.US,"%.02f", mFavValue);
String allValue = String.format(Locale.GERMAN,"%.02f", mFavValue);
mTvFavValue.setText(String.format(getString(R.string.cos_value), allValue));
/** Sum Banner */
}
......