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-04-26 13:58:00 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5db7ba6f85a460d65ffa22a2f1a2bd60297e5c66
5db7ba6f
1 parent
9727c112
redesign supermarket part4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
6 deletions
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyMarketAnalysisActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyWallet.java
warply_android_sdk/src/main/java/ly/warp/sdk/views/adapters/MarketCouponAdapter.java
warply_android_sdk/src/main/res/layout/active_coupon_layout.xml
warply_android_sdk/src/main/res/layout/custom_coupon_layout.xml
warply_android_sdk/src/main/res/layout/market_coupon_layout.xml
warply_android_sdk/src/main/res/values/strings.xml
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyMarketAnalysisActivity.java
View file @
5db7ba6
This diff is collapsed. Click to expand it.
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyWallet.java
View file @
5db7ba6
...
...
@@ -274,7 +274,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie
return
;
}
if
(
view
.
getId
()
==
R
.
id
.
cl_market_inner
)
{
if
(
countValue
>
0
)
{
//
if (countValue > 0) {
WarplyAnalyticsManager
.
logTrackersEvent
(
this
,
"click"
,
(
"LoyaltyWalletScreen"
)
.
concat
(
":"
)
.
concat
(
"MarketBanner"
));
...
...
@@ -284,7 +284,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie
EventBus
.
getDefault
().
post
(
new
WarplyEventBusManager
(
analyticsEvent
));
Intent
intent
=
new
Intent
(
LoyaltyWallet
.
this
,
LoyaltyMarketAnalysisActivity
.
class
);
startActivity
(
intent
);
}
//
}
return
;
}
if
(
view
.
getId
()
==
R
.
id
.
cl_mygifts
)
{
...
...
@@ -391,7 +391,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie
if
(
mUnifiedCoupons
!=
null
&&
mUnifiedCoupons
.
size
()
>
0
)
{
ArrayList
<
UnifiedCoupon
>
unilist
=
new
ArrayList
<
UnifiedCoupon
>();
for
(
UnifiedCoupon
unicpn
:
mUnifiedCoupons
)
{
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd hh:mm"
);
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd hh:mm
:ss
"
);
Date
newDate
=
new
Date
();
try
{
newDate
=
simpleDateFormat
.
parse
(
unicpn
.
getCreated
());
...
...
@@ -644,7 +644,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie
mUnifiedCouponsAll
=
result
;
ArrayList
<
UnifiedCoupon
>
cpnlist
=
new
ArrayList
<
UnifiedCoupon
>();
for
(
UnifiedCoupon
cpn
:
result
)
{
if
(
cpn
.
getStatus
().
equals
(
"active"
))
{
if
(
cpn
.
getStatus
().
trim
().
equals
(
"active"
))
{
cpnlist
.
add
(
cpn
);
}
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/views/adapters/MarketCouponAdapter.java
View file @
5db7ba6
...
...
@@ -95,7 +95,7 @@ public class MarketCouponAdapter extends RecyclerView.Adapter<MarketCouponAdapte
for
(
Coupon
item
:
couponItem
.
getCoupons
())
{
if
(
item
.
getStatus
()
==
1
)
{
count
++;
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd hh:mm"
);
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd hh:mm
:ss
"
);
Date
newDate
=
new
Date
();
try
{
newDate
=
simpleDateFormat
.
parse
(
item
.
getExpiration
());
...
...
@@ -110,7 +110,7 @@ public class MarketCouponAdapter extends RecyclerView.Adapter<MarketCouponAdapte
Collections
.
sort
(
couponList
,
(
coupon1
,
coupon2
)
->
coupon1
.
getExpirationDate
().
compareTo
(
coupon2
.
getExpirationDate
()));
if
(
couponList
!=
null
&&
couponList
.
size
()
>
0
)
{
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd hh:mm"
);
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd hh:mm
:ss
"
);
Date
newDate
=
new
Date
();
try
{
newDate
=
simpleDateFormat
.
parse
(
couponList
.
get
(
0
).
getExpiration
());
...
...
warply_android_sdk/src/main/res/layout/active_coupon_layout.xml
View file @
5db7ba6
...
...
@@ -93,6 +93,7 @@
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:maxLines=
"3"
android:ellipsize=
"end"
android:textColor=
"@color/cos_light_black"
android:textSize=
"12sp"
app:layout_constraintBottom_toBottomOf=
"parent"
...
...
warply_android_sdk/src/main/res/layout/custom_coupon_layout.xml
View file @
5db7ba6
...
...
@@ -87,6 +87,7 @@
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:maxLines=
"3"
android:ellipsize=
"end"
android:textColor=
"@color/cos_light_black"
android:textSize=
"12sp"
app:layout_constraintBottom_toBottomOf=
"parent"
...
...
warply_android_sdk/src/main/res/layout/market_coupon_layout.xml
View file @
5db7ba6
...
...
@@ -91,6 +91,7 @@
android:layout_marginStart=
"8dp"
android:layout_marginEnd=
"16dp"
android:maxLines=
"3"
android:ellipsize=
"end"
android:textColor=
"@color/cos_light_black"
android:textSize=
"12sp"
app:layout_constraintBottom_toBottomOf=
"parent"
...
...
warply_android_sdk/src/main/res/values/strings.xml
View file @
5db7ba6
...
...
@@ -169,6 +169,7 @@
<string
name=
"cos_coupon_date_limit2"
>
%1$s
</string>
<string
name=
"cos_for_you_all"
>
Μέχρι τώρα έχεις κερδίσει
 
%1$s€
 
στο For You!
</string>
<string
name=
"cos_supermarket_win"
>
Έχεις κερδίσει
 
%1$s€
 
με τα\nSuperMarket Deals!
</string>
<string
name=
"cos_supermarket_history"
>
Μέχρι τώρα έχεις κερδίσει %1$s€ σε προσφορές από %2$s κουπόνια!
</string>
<string-array
name=
"coupons_array"
>
<item>
Κουπόνια
</item>
...
...
Please
register
or
login
to post a comment