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-11-01 11:25:54 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a0e06b93531b0b86a204d0b3030e7bff65ce60f4
a0e06b93
1 parent
05e7e370
minor fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
warply_android_sdk/src/main/java/ly/warp/sdk/activities/ContextualActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/ContextualActivity.java
View file @
a0e06b9
...
...
@@ -342,6 +342,9 @@ public class ContextualActivity extends Activity implements View.OnClickListener
@Override
public
void
onSuccess
(
JSONObject
result
)
{
/* New Addition start */
if
(
mLoyalty
!=
null
)
{
WarplyManagerHelper
.
removeCampaignItem
(
mLoyalty
);
}
WarplyManager
.
getUserCouponsWithCouponsetsInternal
(
mUserCouponsReceiver
);
WarplyManager
.
getCampaignsInternal
(
mCampaignsCallback
);
/* New Addition end */
...
...
@@ -385,14 +388,8 @@ public class ContextualActivity extends Activity implements View.OnClickListener
private
CallbackReceiver
<
ArrayList
<
Campaign
>>
mCampaignsCallback
=
new
CallbackReceiver
<
ArrayList
<
Campaign
>>()
{
@Override
public
void
onSuccess
(
ArrayList
<
Campaign
>
result
)
{
if
(
mLoyalty
!=
null
)
{
WarplyManagerHelper
.
removeCampaignItem
(
mLoyalty
);
OneTimeWorkRequest
mywork
=
new
OneTimeWorkRequest
.
Builder
(
EventCampaignService
.
class
).
build
();
WorkManager
.
getInstance
(
ContextualActivity
.
this
).
enqueue
(
mywork
);
}
else
{
OneTimeWorkRequest
mywork
=
new
OneTimeWorkRequest
.
Builder
(
EventCampaignService
.
class
).
build
();
WorkManager
.
getInstance
(
ContextualActivity
.
this
).
enqueue
(
mywork
);
}
OneTimeWorkRequest
mywork
=
new
OneTimeWorkRequest
.
Builder
(
EventCampaignService
.
class
).
build
();
WorkManager
.
getInstance
(
ContextualActivity
.
this
).
enqueue
(
mywork
);
}
@Override
...
...
Please
register
or
login
to post a comment