Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_android_sdk_maven_plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Panagiotis Triantafyllou
2023-10-30 15:02:25 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c4cc5dbcba70a7c5ee4c52d1eb2fdc0250b67284
c4cc5dbc
1 parent
35b4e27a
minor fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyHistoryActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyHistoryActivity.java
View file @
c4cc5db
...
...
@@ -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 */
}
...
...
Please
register
or
login
to post a comment