Panagiotis Triantafyllou

multiple click fix

...@@ -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.6rc66' 5 + PUBLISH_VERSION = '4.5.4.6rc67'
6 PUBLISH_ARTIFACT_ID = 'warply-android-sdk' 6 PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
7 } 7 }
8 8
......
...@@ -61,7 +61,7 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe ...@@ -61,7 +61,7 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
61 private LinearLayout mLlRedeem, mLlTerms; 61 private LinearLayout mLlRedeem, mLlTerms;
62 private ProgressBar mPbLoading; 62 private ProgressBar mPbLoading;
63 private Coupon mCoupon; 63 private Coupon mCoupon;
64 - private boolean mIsTermsPressed = false; 64 + private boolean mIsTermsPressed = false, mIsGiftPressed = false;
65 private AlertDialog mAlertDialogCouponset; 65 private AlertDialog mAlertDialogCouponset;
66 private Campaign mLoyalty; 66 private Campaign mLoyalty;
67 private LoyaltyContextualOfferModel mCcms = null; 67 private LoyaltyContextualOfferModel mCcms = null;
...@@ -98,6 +98,7 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe ...@@ -98,6 +98,7 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
98 public void onResume() { 98 public void onResume() {
99 super.onResume(); 99 super.onResume();
100 WarplyAnalyticsManager.logTrackersEvent(this, "screen", "CouponsetScreen"); 100 WarplyAnalyticsManager.logTrackersEvent(this, "screen", "CouponsetScreen");
101 + mIsGiftPressed = false;
101 } 102 }
102 103
103 @Override 104 @Override
...@@ -107,6 +108,8 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe ...@@ -107,6 +108,8 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
107 return; 108 return;
108 } 109 }
109 if (view.getId() == R.id.ll_get_gift) { 110 if (view.getId() == R.id.ll_get_gift) {
111 + if (!mIsGiftPressed) {
112 + mIsGiftPressed = true;
110 mLlRedeem.setEnabled(false); 113 mLlRedeem.setEnabled(false);
111 mPbLoading.setVisibility(View.VISIBLE); 114 mPbLoading.setVisibility(View.VISIBLE);
112 WarplyAnalyticsManager.logTrackersEvent(this, "click", ("RetrieveCoupon") 115 WarplyAnalyticsManager.logTrackersEvent(this, "click", ("RetrieveCoupon")
...@@ -146,6 +149,7 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe ...@@ -146,6 +149,7 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
146 } 149 }
147 return; 150 return;
148 } 151 }
152 + }
149 if (view.getId() == R.id.ll_terms_inner) { 153 if (view.getId() == R.id.ll_terms_inner) {
150 if (mIsTermsPressed) { 154 if (mIsTermsPressed) {
151 mIsTermsPressed = false; 155 mIsTermsPressed = false;
......