Panagiotis Triantafyllou

sm deals fixes

......@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'ly.warp'
PUBLISH_VERSION = '4.5.4.6rc61'
PUBLISH_VERSION = '4.5.4.6rc63'
PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
}
......
......@@ -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 -> {
WarplyAnalyticsManager.logTrackersEvent(this, "click", ("Coupon").concat(":").concat(coupon.getName()));
Intent intent = new Intent(ActiveCouponsActivity.this, CouponInfoActivity.class);
intent.putExtra("coupon", (Serializable) coupon);
startActivity(intent);
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 -> {
})
......