Panagiotis Triantafyllou

minor help :P

......@@ -35,12 +35,18 @@
android:name="ly.warp.sdk.activities.BillPaymentActivity"
android:exported="false"
android:screenOrientation="portrait" />
<activity
android:name="ly.warp.sdk.activities.CouponInfoActivity"
android:exported="false"
android:screenOrientation="portrait" />
<activity
android:name="ly.warp.sdk.activities.CouponTransactionActivity"
android:exported="false"
android:screenOrientation="portrait" />
<activity
android:name="ly.warp.sdk.dexter.PermissionsActivity"
android:exported="false"
android:launchMode="singleInstance"
......
......@@ -8,6 +8,7 @@ import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.Spinner;
import android.widget.TextView;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
......@@ -35,6 +36,7 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener,
private RecyclerView mRecyclerCoupons, mRecyclerBurntCoupons;
private HomeCouponAdapter mAdapterCoupons, mAdapterBurntCoupons;
private Spinner mCouponSpinner, mRedemptionSpinner;
private TextView mTvAnalysisButton;
// ===========================================================
// Methods for/from SuperClass/Interfaces
......@@ -51,6 +53,7 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener,
mRecyclerBurntCoupons = findViewById(R.id.rv_loyalty_burnt_coupons);
mCouponSpinner = findViewById(R.id.sp_coupons);
mRedemptionSpinner = findViewById(R.id.sp_redemption);
mTvAnalysisButton = findViewById(R.id.rl_analysis_row).findViewById(R.id.cl_chart_info).findViewById(R.id.tv_analysis_details);
initViews();
}
......@@ -64,6 +67,11 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener,
public void onClick(View view) {
if (view.getId() == R.id.iv_back) {
onBackPressed();
return;
}
if (view.getId() == R.id.tv_analysis_details) {
Intent intent = new Intent(this, CouponTransactionActivity.class);
startActivity(intent);
}
}
......@@ -93,6 +101,7 @@ public class LoyaltyActivity extends Activity implements View.OnClickListener,
/********* TEST COUPONS DATA **********/
mIvBack.setOnClickListener(this);
mTvAnalysisButton.setOnClickListener(this);
mRecyclerCoupons.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));
mAdapterCoupons = new HomeCouponAdapter(this, clist);
......