Showing
4 changed files
with
16 additions
and
5 deletions
| ... | @@ -32,6 +32,11 @@ | ... | @@ -32,6 +32,11 @@ |
| 32 | android:screenOrientation="portrait" /> | 32 | android:screenOrientation="portrait" /> |
| 33 | 33 | ||
| 34 | <activity | 34 | <activity |
| 35 | + android:name="ly.warp.sdk.activities.BillPaymentActivity" | ||
| 36 | + android:exported="false" | ||
| 37 | + android:screenOrientation="portrait" /> | ||
| 38 | + | ||
| 39 | + <activity | ||
| 35 | android:name="ly.warp.sdk.dexter.PermissionsActivity" | 40 | android:name="ly.warp.sdk.dexter.PermissionsActivity" |
| 36 | android:exported="false" | 41 | android:exported="false" |
| 37 | android:launchMode="singleInstance" | 42 | android:launchMode="singleInstance" | ... | ... |
| ... | @@ -29,7 +29,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene | ... | @@ -29,7 +29,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene |
| 29 | super.onCreate(savedInstanceState); | 29 | super.onCreate(savedInstanceState); |
| 30 | setContentView(R.layout.fragment_bill_payment); | 30 | setContentView(R.layout.fragment_bill_payment); |
| 31 | 31 | ||
| 32 | - mIvBack = findViewById(R.id.iv_back); | 32 | +// mIvBack = findViewById(R.id.iv_back); |
| 33 | 33 | ||
| 34 | initViews(); | 34 | initViews(); |
| 35 | } | 35 | } |
| ... | @@ -51,7 +51,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene | ... | @@ -51,7 +51,7 @@ public class BillPaymentActivity extends Activity implements View.OnClickListene |
| 51 | // =========================================================== | 51 | // =========================================================== |
| 52 | 52 | ||
| 53 | private void initViews() { | 53 | private void initViews() { |
| 54 | - mIvBack.setOnClickListener(this); | 54 | +// mIvBack.setOnClickListener(this); |
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | // =========================================================== | 57 | // =========================================================== | ... | ... |
| 1 | package ly.warp.sdk.fragments; | 1 | package ly.warp.sdk.fragments; |
| 2 | 2 | ||
| 3 | +import android.content.Intent; | ||
| 3 | import android.os.Bundle; | 4 | import android.os.Bundle; |
| 4 | import android.util.Log; | 5 | import android.util.Log; |
| 5 | import android.view.LayoutInflater; | 6 | import android.view.LayoutInflater; |
| ... | @@ -17,6 +18,8 @@ import androidx.recyclerview.widget.RecyclerView; | ... | @@ -17,6 +18,8 @@ import androidx.recyclerview.widget.RecyclerView; |
| 17 | import org.json.JSONException; | 18 | import org.json.JSONException; |
| 18 | 19 | ||
| 19 | import ly.warp.sdk.R; | 20 | import ly.warp.sdk.R; |
| 21 | +import ly.warp.sdk.activities.BillPaymentActivity; | ||
| 22 | +import ly.warp.sdk.activities.LoyaltyActivity; | ||
| 20 | import ly.warp.sdk.views.adapters.HomeCampaignAdapter; | 23 | import ly.warp.sdk.views.adapters.HomeCampaignAdapter; |
| 21 | import ly.warp.sdk.views.adapters.HomeCouponAdapter; | 24 | import ly.warp.sdk.views.adapters.HomeCouponAdapter; |
| 22 | import ly.warp.sdk.activities.WarpViewActivity; | 25 | import ly.warp.sdk.activities.WarpViewActivity; |
| ... | @@ -117,9 +120,12 @@ public class HomeFragment extends Fragment { | ... | @@ -117,9 +120,12 @@ public class HomeFragment extends Fragment { |
| 117 | mRecyclerCoupons.setAdapter(mAdapterCoupons); | 120 | mRecyclerCoupons.setAdapter(mAdapterCoupons); |
| 118 | mAdapterCoupons.getPositionClicks() | 121 | mAdapterCoupons.getPositionClicks() |
| 119 | .doOnNext(coupon -> { | 122 | .doOnNext(coupon -> { |
| 120 | - getContext().startActivity( | 123 | +// getContext().startActivity( |
| 121 | - WarpViewActivity.createIntentFromSessionUUID(getContext(), | 124 | +// WarpViewActivity.createIntentFromSessionUUID(getContext(), |
| 122 | - coupon.getCoupon())); | 125 | +// coupon.getCoupon())); |
| 126 | + | ||
| 127 | + Intent intent = new Intent(getContext(), BillPaymentActivity.class); | ||
| 128 | + getContext().startActivity(intent); | ||
| 123 | }) | 129 | }) |
| 124 | .doOnError(error -> { | 130 | .doOnError(error -> { |
| 125 | }) | 131 | }) | ... | ... |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment