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
Panagiotis Triantafyllou
2024-02-26 18:18:11 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
468baa84c6756ec60f22087b8adfdc9e98004251
468baa84
1 parent
281b4235
my rewards fragment
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
warply_android_sdk/src/main/java/ly/warp/sdk/activities/BaseFragmentActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/fragments/MyRewardsFragment.java
warply_android_sdk/src/main/res/layout/fragment_my_rewards.xml
warply_android_sdk/src/main/java/ly/warp/sdk/activities/BaseFragmentActivity.java
View file @
468baa8
package
ly
.
warp
.
sdk
.
activities
;
import
android.content.Context
;
import
android.os.Bundle
;
import
android.view.MenuItem
;
import
android.widget.Toast
;
...
...
@@ -12,15 +13,14 @@ import com.google.android.material.bottomnavigation.BottomNavigationView;
import
com.google.android.material.navigation.NavigationBarView
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
io.github.inflationx.viewpump.ViewPumpContextWrapper
;
import
ly.warp.sdk.R
;
import
ly.warp.sdk.fragments.HomeFragment
;
import
ly.warp.sdk.fragments.LoyaltyFragment
;
import
ly.warp.sdk.fragments.MyRewardsFragment
;
import
ly.warp.sdk.io.callbacks.CallbackReceiver
;
import
ly.warp.sdk.io.models.Campaign
;
import
ly.warp.sdk.io.models.CampaignList
;
import
ly.warp.sdk.io.models.Consumer
;
import
ly.warp.sdk.io.models.CouponList
;
import
ly.warp.sdk.io.models.UnifiedCoupon
;
import
ly.warp.sdk.io.request.WarplyGetCampaignsRequest
;
...
...
@@ -89,10 +89,22 @@ public class BaseFragmentActivity extends FragmentActivity implements Navigation
.
addToBackStack
(
null
)
.
commit
();
return
true
;
}
else
if
(
itemId
==
R
.
id
.
menu_profile
)
{
mFragmentToSet
=
MyRewardsFragment
.
newInstance
();
getSupportFragmentManager
().
beginTransaction
()
.
replace
(
R
.
id
.
fl_fragment
,
mFragmentToSet
)
.
addToBackStack
(
null
)
.
commit
();
return
true
;
}
return
false
;
}
@Override
public
void
attachBaseContext
(
Context
newBase
)
{
super
.
attachBaseContext
(
ViewPumpContextWrapper
.
wrap
(
newBase
));
}
// ===========================================================
// Methods
// ===========================================================
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/fragments/MyRewardsFragment.java
0 → 100644
View file @
468baa8
This diff is collapsed. Click to expand it.
warply_android_sdk/src/main/res/layout/fragment_my_rewards.xml
0 → 100644
View file @
468baa8
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment