Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_android_sdk_maven_plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
thkouk00
2022-03-24 16:31:57 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b05ec1beafa377798eba239fa70acbaa1dda076f
b05ec1be
1 parent
1f13db7a
link couponInfo
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
5 deletions
warply_android_sdk/src/main/AndroidManifest.xml
warply_android_sdk/src/main/java/ly/warp/sdk/activities/CouponInfoActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/fragments/HomeFragment.java
warply_android_sdk/src/main/res/layout/activity_coupon_info.xml
warply_android_sdk/src/main/AndroidManifest.xml
View file @
b05ec1b
...
...
@@ -35,6 +35,10 @@
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.dexter.PermissionsActivity"
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/CouponInfoActivity.java
0 → 100644
View file @
b05ec1b
package
ly
.
warp
.
sdk
.
activities
;
import
android.app.Activity
;
import
android.app.Dialog
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.ImageView
;
import
ly.warp.sdk.R
;
public
class
CouponInfoActivity
extends
Activity
implements
View
.
OnClickListener
{
// ===========================================================
// Constants
// ===========================================================
// ===========================================================
// Fields
// ===========================================================
private
ImageView
mIvBack
;
// ===========================================================
// Methods for/from SuperClass/Interfaces
// ===========================================================
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_coupon_info
);
mIvBack
=
findViewById
(
R
.
id
.
iv_coupon_info_back
);
initViews
();
}
@Override
public
void
onResume
()
{
super
.
onResume
();
}
@Override
public
void
onClick
(
View
view
)
{
if
(
view
.
getId
()
==
R
.
id
.
iv_coupon_info_back
)
{
onBackPressed
();
}
}
// ===========================================================
// Methods
// ===========================================================
private
void
initViews
()
{
mIvBack
.
setOnClickListener
(
this
);
}
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================
}
warply_android_sdk/src/main/java/ly/warp/sdk/fragments/HomeFragment.java
View file @
b05ec1b
...
...
@@ -2,7 +2,6 @@ package ly.warp.sdk.fragments;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.util.Log
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.ViewGroup
;
...
...
@@ -18,8 +17,7 @@ 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.activities.CouponInfoActivity
;
import
ly.warp.sdk.views.adapters.HomeCampaignAdapter
;
import
ly.warp.sdk.views.adapters.HomeCouponAdapter
;
import
ly.warp.sdk.activities.WarpViewActivity
;
...
...
@@ -124,7 +122,8 @@ public class HomeFragment extends Fragment {
// WarpViewActivity.createIntentFromSessionUUID(getContext(),
// coupon.getCoupon()));
Intent
intent
=
new
Intent
(
getContext
(),
BillPaymentActivity
.
class
);
// Intent intent = new Intent(getContext(), BillPaymentActivity.class);
Intent
intent
=
new
Intent
(
getContext
(),
CouponInfoActivity
.
class
);
getContext
().
startActivity
(
intent
);
})
.
doOnError
(
error
->
{
...
...
warply_android_sdk/src/main/res/layout/activity_coupon_info.xml
View file @
b05ec1b
...
...
@@ -12,7 +12,7 @@
android:background=
"@android:color/white"
>
<ImageView
android:id=
"@+id/iv_back"
android:id=
"@+id/iv_
coupon_info_
back"
android:layout_width=
"20dp"
android:layout_height=
"20dp"
android:layout_marginStart=
"16dp"
...
...
Please
register
or
login
to post a comment