Showing
2 changed files
with
15 additions
and
0 deletions
| ... | @@ -35,12 +35,18 @@ | ... | @@ -35,12 +35,18 @@ |
| 35 | android:name="ly.warp.sdk.activities.BillPaymentActivity" | 35 | android:name="ly.warp.sdk.activities.BillPaymentActivity" |
| 36 | android:exported="false" | 36 | android:exported="false" |
| 37 | android:screenOrientation="portrait" /> | 37 | android:screenOrientation="portrait" /> |
| 38 | + | ||
| 38 | <activity | 39 | <activity |
| 39 | android:name="ly.warp.sdk.activities.CouponInfoActivity" | 40 | android:name="ly.warp.sdk.activities.CouponInfoActivity" |
| 40 | android:exported="false" | 41 | android:exported="false" |
| 41 | android:screenOrientation="portrait" /> | 42 | android:screenOrientation="portrait" /> |
| 42 | 43 | ||
| 43 | <activity | 44 | <activity |
| 45 | + android:name="ly.warp.sdk.activities.CouponTransactionActivity" | ||
| 46 | + android:exported="false" | ||
| 47 | + android:screenOrientation="portrait" /> | ||
| 48 | + | ||
| 49 | + <activity | ||
| 44 | android:name="ly.warp.sdk.dexter.PermissionsActivity" | 50 | android:name="ly.warp.sdk.dexter.PermissionsActivity" |
| 45 | android:exported="false" | 51 | android:exported="false" |
| 46 | android:launchMode="singleInstance" | 52 | android:launchMode="singleInstance" | ... | ... |
| ... | @@ -8,6 +8,7 @@ import android.widget.AdapterView; | ... | @@ -8,6 +8,7 @@ import android.widget.AdapterView; |
| 8 | import android.widget.ArrayAdapter; | 8 | import android.widget.ArrayAdapter; |
| 9 | import android.widget.ImageView; | 9 | import android.widget.ImageView; |
| 10 | import android.widget.Spinner; | 10 | import android.widget.Spinner; |
| 11 | +import android.widget.TextView; | ||
| 11 | 12 | ||
| 12 | import androidx.recyclerview.widget.LinearLayoutManager; | 13 | import androidx.recyclerview.widget.LinearLayoutManager; |
| 13 | import androidx.recyclerview.widget.RecyclerView; | 14 | import androidx.recyclerview.widget.RecyclerView; |
| ... | @@ -35,6 +36,7 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener, | ... | @@ -35,6 +36,7 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener, |
| 35 | private RecyclerView mRecyclerCoupons, mRecyclerBurntCoupons; | 36 | private RecyclerView mRecyclerCoupons, mRecyclerBurntCoupons; |
| 36 | private HomeCouponAdapter mAdapterCoupons, mAdapterBurntCoupons; | 37 | private HomeCouponAdapter mAdapterCoupons, mAdapterBurntCoupons; |
| 37 | private Spinner mCouponSpinner, mRedemptionSpinner; | 38 | private Spinner mCouponSpinner, mRedemptionSpinner; |
| 39 | + private TextView mTvAnalysisButton; | ||
| 38 | 40 | ||
| 39 | // =========================================================== | 41 | // =========================================================== |
| 40 | // Methods for/from SuperClass/Interfaces | 42 | // Methods for/from SuperClass/Interfaces |
| ... | @@ -51,6 +53,7 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener, | ... | @@ -51,6 +53,7 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener, |
| 51 | mRecyclerBurntCoupons = findViewById(R.id.rv_loyalty_burnt_coupons); | 53 | mRecyclerBurntCoupons = findViewById(R.id.rv_loyalty_burnt_coupons); |
| 52 | mCouponSpinner = findViewById(R.id.sp_coupons); | 54 | mCouponSpinner = findViewById(R.id.sp_coupons); |
| 53 | mRedemptionSpinner = findViewById(R.id.sp_redemption); | 55 | mRedemptionSpinner = findViewById(R.id.sp_redemption); |
| 56 | + mTvAnalysisButton = findViewById(R.id.rl_analysis_row).findViewById(R.id.cl_chart_info).findViewById(R.id.tv_analysis_details); | ||
| 54 | 57 | ||
| 55 | initViews(); | 58 | initViews(); |
| 56 | } | 59 | } |
| ... | @@ -64,6 +67,11 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener, | ... | @@ -64,6 +67,11 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener, |
| 64 | public void onClick(View view) { | 67 | public void onClick(View view) { |
| 65 | if (view.getId() == R.id.iv_back) { | 68 | if (view.getId() == R.id.iv_back) { |
| 66 | onBackPressed(); | 69 | onBackPressed(); |
| 70 | + return; | ||
| 71 | + } | ||
| 72 | + if (view.getId() == R.id.tv_analysis_details) { | ||
| 73 | + Intent intent = new Intent(this, CouponTransactionActivity.class); | ||
| 74 | + startActivity(intent); | ||
| 67 | } | 75 | } |
| 68 | } | 76 | } |
| 69 | 77 | ||
| ... | @@ -93,6 +101,7 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener, | ... | @@ -93,6 +101,7 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener, |
| 93 | /********* TEST COUPONS DATA **********/ | 101 | /********* TEST COUPONS DATA **********/ |
| 94 | 102 | ||
| 95 | mIvBack.setOnClickListener(this); | 103 | mIvBack.setOnClickListener(this); |
| 104 | + mTvAnalysisButton.setOnClickListener(this); | ||
| 96 | 105 | ||
| 97 | mRecyclerCoupons.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false)); | 106 | mRecyclerCoupons.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false)); |
| 98 | mAdapterCoupons = new HomeCouponAdapter(this, clist); | 107 | mAdapterCoupons = new HomeCouponAdapter(this, clist); | ... | ... |
-
Please register or login to post a comment