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-07-11 10:57:53 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2d4dfb2dbfc7e43fb2fe54403429339f9755c6f5
2d4dfb2d
1 parent
aed8f11b
sm deals fixes
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
warply_android_sdk/build.gradle
warply_android_sdk/src/main/java/ly/warp/sdk/activities/ActiveCouponsActivity.java
warply_android_sdk/build.gradle
View file @
2d4dfb2
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4.6rc6
1
'
PUBLISH_VERSION
=
'4.5.4.6rc6
3
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/ActiveCouponsActivity.java
View file @
2d4dfb2
...
...
@@ -41,6 +41,7 @@ public class ActiveCouponsActivity extends Activity implements View.OnClickListe
private
ActiveCouponAdapter
mAdapterCoupons
;
private
CouponList
mCouponList
=
new
CouponList
();
private
TextView
mTvEmptyCoupons
;
private
boolean
mCouponsPressed
=
false
;
// ===========================================================
// Methods for/from SuperClass/Interfaces
...
...
@@ -62,6 +63,7 @@ public class ActiveCouponsActivity extends Activity implements View.OnClickListe
public
void
onResume
()
{
super
.
onResume
();
WarplyAnalyticsManager
.
logTrackersEvent
(
this
,
"screen"
,
"ActiveCouponsScreen"
);
mCouponsPressed
=
false
;
filterItems
();
}
...
...
@@ -110,10 +112,13 @@ public class ActiveCouponsActivity extends Activity implements View.OnClickListe
mRecyclerCoupons
.
setAdapter
(
mAdapterCoupons
);
mAdapterCoupons
.
getPositionClicks
()
.
doOnNext
(
coupon
->
{
if
(!
mCouponsPressed
)
{
mCouponsPressed
=
true
;
WarplyAnalyticsManager
.
logTrackersEvent
(
this
,
"click"
,
(
"Coupon"
).
concat
(
":"
).
concat
(
coupon
.
getName
()));
Intent
intent
=
new
Intent
(
ActiveCouponsActivity
.
this
,
CouponInfoActivity
.
class
);
intent
.
putExtra
(
"coupon"
,
(
Serializable
)
coupon
);
startActivity
(
intent
);
}
})
.
doOnError
(
error
->
{
})
...
...
Please
register
or
login
to post a comment