Panagiotis Triantafyllou

tets commit 2

......@@ -32,6 +32,11 @@
android:screenOrientation="portrait" />
<activity
android:name="ly.warp.sdk.activities.BillPaymentActivity"
android:exported="false"
android:screenOrientation="portrait" />
<activity
android:name="ly.warp.sdk.dexter.PermissionsActivity"
android:exported="false"
android:launchMode="singleInstance"
......
......@@ -29,7 +29,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
super.onCreate(savedInstanceState);
setContentView(R.layout.fragment_bill_payment);
mIvBack = findViewById(R.id.iv_back);
// mIvBack = findViewById(R.id.iv_back);
initViews();
}
......@@ -51,7 +51,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene
// ===========================================================
private void initViews() {
mIvBack.setOnClickListener(this);
// mIvBack.setOnClickListener(this);
}
// ===========================================================
......
package ly.warp.sdk.fragments;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
......@@ -17,6 +18,8 @@ import androidx.recyclerview.widget.RecyclerView;
import org.json.JSONException;
import ly.warp.sdk.R;
import ly.warp.sdk.activities.BillPaymentActivity;
import ly.warp.sdk.activities.LoyaltyActivity;
import ly.warp.sdk.views.adapters.HomeCampaignAdapter;
import ly.warp.sdk.views.adapters.HomeCouponAdapter;
import ly.warp.sdk.activities.WarpViewActivity;
......@@ -117,9 +120,12 @@ public class HomeFragment extends Fragment {
mRecyclerCoupons.setAdapter(mAdapterCoupons);
mAdapterCoupons.getPositionClicks()
.doOnNext(coupon -> {
getContext().startActivity(
WarpViewActivity.createIntentFromSessionUUID(getContext(),
coupon.getCoupon()));
// getContext().startActivity(
// WarpViewActivity.createIntentFromSessionUUID(getContext(),
// coupon.getCoupon()));
Intent intent = new Intent(getContext(), BillPaymentActivity.class);
getContext().startActivity(intent);
})
.doOnError(error -> {
})
......