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-31 13:37:20 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1afabf34a82e6828938ab54b002d63b833cf3346
1afabf34
1 parent
c4cc5dbc
sm deals fixes revert
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
warply_android_sdk/src/main/java/ly/warp/sdk/activities/UnifiedCouponInfoActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/views/adapters/MarketCouponAdapter.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/UnifiedCouponInfoActivity.java
View file @
1afabf3
...
...
@@ -211,13 +211,13 @@ public class UnifiedCouponInfoActivity extends Activity implements View.OnClickL
// mTvActiveValue.setText(HtmlCompat.fromHtml(String.format(getString(R.string.cos_unified_subtitle), String.valueOf(activeValue)), HtmlCompat.FROM_HTML_MODE_COMPACT));
mTvActiveValue
.
setText
(
getString
(
R
.
string
.
cos_unified_subtitle2
));
Collections
.
sort
(
cpnlist
,
(
coupon1
,
coupon2
)
->
coupon
1
.
getExpirationDate
().
compareTo
(
coupon2
.
getExpirationDate
()));
Collections
.
sort
(
cpnlist
,
(
coupon1
,
coupon2
)
->
coupon
2
.
getExpirationDate
().
compareTo
(
coupon1
.
getExpirationDate
()));
for
(
Coupon
tempItem
:
cpnlist
)
{
if
(
tempItem
.
getStatus
()
==
1
)
{
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd hh:mm"
);
Date
newDate
=
new
Date
();
try
{
newDate
=
simpleDateFormat
.
parse
(
cpnlist
.
get
(
0
)
.
getExpiration
());
newDate
=
simpleDateFormat
.
parse
(
tempItem
.
getExpiration
());
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/views/adapters/MarketCouponAdapter.java
View file @
1afabf3
...
...
@@ -109,7 +109,7 @@ public class MarketCouponAdapter extends RecyclerView.Adapter<MarketCouponAdapte
}
}
Collections
.
sort
(
couponList
,
(
coupon1
,
coupon2
)
->
coupon
1
.
getExpirationDate
().
compareTo
(
coupon2
.
getExpirationDate
()));
Collections
.
sort
(
couponList
,
(
coupon1
,
coupon2
)
->
coupon
2
.
getExpirationDate
().
compareTo
(
coupon1
.
getExpirationDate
()));
if
(
couponList
!=
null
&&
couponList
.
size
()
>
0
)
{
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd hh:mm:ss"
);
...
...
Please
register
or
login
to post a comment