Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -262,8 +262,6 @@ public class HomeActivity extends Activity implements View.OnClickListener, Coup | ... | @@ -262,8 +262,6 @@ public class HomeActivity extends Activity implements View.OnClickListener, Coup |
| 262 | 262 | ||
| 263 | mBannerAdapter = new CarouselAdapter(this, WarplyManagerHelper.getCarouselList()); | 263 | mBannerAdapter = new CarouselAdapter(this, WarplyManagerHelper.getCarouselList()); |
| 264 | mBannerAdapter.setOnBannerClickListener(carouselItem -> { | 264 | mBannerAdapter.setOnBannerClickListener(carouselItem -> { |
| 265 | -// startActivity(WarpViewActivity.createIntentFromURL(this, WarplyManagerHelper.constructCampaignUrl(carouselItem.getUrl()))); | ||
| 266 | - | ||
| 267 | if (!TextUtils.isEmpty(carouselItem.getUrl())) { | 265 | if (!TextUtils.isEmpty(carouselItem.getUrl())) { |
| 268 | if (carouselItem.getUrl().contains("Offers?")) { | 266 | if (carouselItem.getUrl().contains("Offers?")) { |
| 269 | //TODO: category uuid | 267 | //TODO: category uuid |
| ... | @@ -276,6 +274,8 @@ public class HomeActivity extends Activity implements View.OnClickListener, Coup | ... | @@ -276,6 +274,8 @@ public class HomeActivity extends Activity implements View.OnClickListener, Coup |
| 276 | startActivity(myIntent); | 274 | startActivity(myIntent); |
| 277 | } | 275 | } |
| 278 | } | 276 | } |
| 277 | + } else if (carouselItem.getUrl().contains("index.html")) { | ||
| 278 | + startActivity(WarpViewActivity.createIntentFromURL(this, WarplyManagerHelper.constructCampaignUrl(carouselItem.getUrl()))); | ||
| 279 | } | 279 | } |
| 280 | } | 280 | } |
| 281 | }); | 281 | }); | ... | ... |
-
Please register or login to post a comment