Showing
2 changed files
with
6 additions
and
1 deletions
... | @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' | ... | @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' |
2 | 2 | ||
3 | ext { | 3 | ext { |
4 | PUBLISH_GROUP_ID = 'ly.warp' | 4 | PUBLISH_GROUP_ID = 'ly.warp' |
5 | - PUBLISH_VERSION = '4.5.4.6rc61' | 5 | + PUBLISH_VERSION = '4.5.4.6rc63' |
6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' | 6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' |
7 | } | 7 | } |
8 | 8 | ... | ... |
... | @@ -41,6 +41,7 @@ public class ActiveCouponsActivity extends Activity implements View.OnClickListe | ... | @@ -41,6 +41,7 @@ public class ActiveCouponsActivity extends Activity implements View.OnClickListe |
41 | private ActiveCouponAdapter mAdapterCoupons; | 41 | private ActiveCouponAdapter mAdapterCoupons; |
42 | private CouponList mCouponList = new CouponList(); | 42 | private CouponList mCouponList = new CouponList(); |
43 | private TextView mTvEmptyCoupons; | 43 | private TextView mTvEmptyCoupons; |
44 | + private boolean mCouponsPressed = false; | ||
44 | 45 | ||
45 | // =========================================================== | 46 | // =========================================================== |
46 | // Methods for/from SuperClass/Interfaces | 47 | // Methods for/from SuperClass/Interfaces |
... | @@ -62,6 +63,7 @@ public class ActiveCouponsActivity extends Activity implements View.OnClickListe | ... | @@ -62,6 +63,7 @@ public class ActiveCouponsActivity extends Activity implements View.OnClickListe |
62 | public void onResume() { | 63 | public void onResume() { |
63 | super.onResume(); | 64 | super.onResume(); |
64 | WarplyAnalyticsManager.logTrackersEvent(this, "screen", "ActiveCouponsScreen"); | 65 | WarplyAnalyticsManager.logTrackersEvent(this, "screen", "ActiveCouponsScreen"); |
66 | + mCouponsPressed = false; | ||
65 | filterItems(); | 67 | filterItems(); |
66 | } | 68 | } |
67 | 69 | ||
... | @@ -110,10 +112,13 @@ public class ActiveCouponsActivity extends Activity implements View.OnClickListe | ... | @@ -110,10 +112,13 @@ public class ActiveCouponsActivity extends Activity implements View.OnClickListe |
110 | mRecyclerCoupons.setAdapter(mAdapterCoupons); | 112 | mRecyclerCoupons.setAdapter(mAdapterCoupons); |
111 | mAdapterCoupons.getPositionClicks() | 113 | mAdapterCoupons.getPositionClicks() |
112 | .doOnNext(coupon -> { | 114 | .doOnNext(coupon -> { |
115 | + if (!mCouponsPressed) { | ||
116 | + mCouponsPressed = true; | ||
113 | WarplyAnalyticsManager.logTrackersEvent(this, "click", ("Coupon").concat(":").concat(coupon.getName())); | 117 | WarplyAnalyticsManager.logTrackersEvent(this, "click", ("Coupon").concat(":").concat(coupon.getName())); |
114 | Intent intent = new Intent(ActiveCouponsActivity.this, CouponInfoActivity.class); | 118 | Intent intent = new Intent(ActiveCouponsActivity.this, CouponInfoActivity.class); |
115 | intent.putExtra("coupon", (Serializable) coupon); | 119 | intent.putExtra("coupon", (Serializable) coupon); |
116 | startActivity(intent); | 120 | startActivity(intent); |
121 | + } | ||
117 | }) | 122 | }) |
118 | .doOnError(error -> { | 123 | .doOnError(error -> { |
119 | }) | 124 | }) | ... | ... |
-
Please register or login to post a comment