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
2026-03-23 11:28:15 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d520e3985528cafc290ed95f4d6b52d71e9e972e
d520e398
1 parent
47120148
minor fixes
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
10 deletions
warply_android_sdk/src/main/java/ly/warp/sdk/activities/HomeActivity.java
warply_android_sdk/src/main/res/layout/dialog_fullscreen_questionnaire.xml
warply_android_sdk/src/main/java/ly/warp/sdk/activities/HomeActivity.java
View file @
d520e39
...
...
@@ -262,11 +262,29 @@ public class HomeActivity extends Activity implements View.OnClickListener, Coup
mBannerAdapter
=
new
CarouselAdapter
(
this
,
WarplyManagerHelper
.
getCarouselList
());
mBannerAdapter
.
setOnBannerClickListener
(
carouselItem
->
{
// if (!TextUtils.isEmpty(carouselItem.getUrl())) {
// if (carouselItem.getUrl().contains("Offers?")) {
// //TODO: category uuid
// } else if (carouselItem.getUrl().contains("singleOffer")) {
// if (!TextUtils.isEmpty(carouselItem.getUuid())) {
// Couponset matchedCouponset = findCouponsetByUuid(carouselItem.getUuid());
// if (matchedCouponset != null) {
// Intent myIntent = new Intent(HomeActivity.this, SingleCouponsetActivity.class);
// myIntent.putExtra(SingleCouponsetActivity.EXTRA_OFFER_ITEM, (Parcelable) matchedCouponset);
// startActivity(myIntent);
// }
// }
// } else if (carouselItem.getUrl().contains("index.html")) {
// startActivity(WarpViewActivity.createIntentFromURL(this, WarplyManagerHelper.constructCampaignUrl(carouselItem.getUrl())));
// }
// }
if
(
carouselItem
.
getEntity
().
equalsIgnoreCase
(
"contest"
))
{
if
(!
TextUtils
.
isEmpty
(
carouselItem
.
getUrl
()))
{
startActivity
(
WarpViewActivity
.
createIntentFromURL
(
this
,
WarplyManagerHelper
.
constructCampaignUrl
(
carouselItem
.
getUrl
())));
}
}
else
if
(
carouselItem
.
getEntity
().
equalsIgnoreCase
(
"offer"
))
{
if
(!
TextUtils
.
isEmpty
(
carouselItem
.
getUrl
()))
{
if
(
carouselItem
.
getUrl
().
contains
(
"Offers?"
))
{
//TODO: category uuid
}
else
if
(
carouselItem
.
getUrl
().
contains
(
"singleOffer"
))
{
if
(!
TextUtils
.
isEmpty
(
carouselItem
.
getUuid
()))
{
Couponset
matchedCouponset
=
findCouponsetByUuid
(
carouselItem
.
getUuid
());
if
(
matchedCouponset
!=
null
)
{
Intent
myIntent
=
new
Intent
(
HomeActivity
.
this
,
SingleCouponsetActivity
.
class
);
...
...
@@ -274,9 +292,6 @@ public class HomeActivity extends Activity implements View.OnClickListener, Coup
startActivity
(
myIntent
);
}
}
}
else
if
(
carouselItem
.
getUrl
().
contains
(
"index.html"
))
{
startActivity
(
WarpViewActivity
.
createIntentFromURL
(
this
,
WarplyManagerHelper
.
constructCampaignUrl
(
carouselItem
.
getUrl
())));
}
}
});
...
...
warply_android_sdk/src/main/res/layout/dialog_fullscreen_questionnaire.xml
View file @
d520e39
...
...
@@ -44,6 +44,7 @@
</LinearLayout>
<ScrollView
android:id=
"@+id/sv_main"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:fillViewport=
"true"
...
...
@@ -53,8 +54,9 @@
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
0dp
"
android:orientation=
"vertical"
android:weightSum=
"1"
android:paddingHorizontal=
"16dp"
android:paddingBottom=
"32dp"
>
...
...
@@ -102,8 +104,12 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:padding=
"16dp"
app:layout_constraintBottom_toBottomOf=
"parent"
>
android:paddingHorizontal=
"16dp"
android:paddingTop=
"16dp"
android:paddingBottom=
"16dp"
android:translationZ=
"100dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/sv_main"
>
<LinearLayout
android:id=
"@+id/ll_next_button"
...
...
Please
register
or
login
to post a comment