Panagiotis Triantafyllou

multiple click fix

......@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'ly.warp'
PUBLISH_VERSION = '4.5.4.6rc66'
PUBLISH_VERSION = '4.5.4.6rc67'
PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
}
......
......@@ -61,7 +61,7 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
private LinearLayout mLlRedeem, mLlTerms;
private ProgressBar mPbLoading;
private Coupon mCoupon;
private boolean mIsTermsPressed = false;
private boolean mIsTermsPressed = false, mIsGiftPressed = false;
private AlertDialog mAlertDialogCouponset;
private Campaign mLoyalty;
private LoyaltyContextualOfferModel mCcms = null;
......@@ -98,6 +98,7 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
public void onResume() {
super.onResume();
WarplyAnalyticsManager.logTrackersEvent(this, "screen", "CouponsetScreen");
mIsGiftPressed = false;
}
@Override
......@@ -107,6 +108,8 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
return;
}
if (view.getId() == R.id.ll_get_gift) {
if (!mIsGiftPressed) {
mIsGiftPressed = true;
mLlRedeem.setEnabled(false);
mPbLoading.setVisibility(View.VISIBLE);
WarplyAnalyticsManager.logTrackersEvent(this, "click", ("RetrieveCoupon")
......@@ -146,6 +149,7 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
}
return;
}
}
if (view.getId() == R.id.ll_terms_inner) {
if (mIsTermsPressed) {
mIsTermsPressed = false;
......