Panagiotis Triantafyllou

crash fixes

...@@ -2,7 +2,7 @@ apply plugin: 'com.android.library' ...@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
2 2
3 ext { 3 ext {
4 PUBLISH_GROUP_ID = 'ly.warp' 4 PUBLISH_GROUP_ID = 'ly.warp'
5 - PUBLISH_VERSION = '4.5.4.6rc39' 5 + PUBLISH_VERSION = '4.5.4.6rc40'
6 PUBLISH_ARTIFACT_ID = 'warply-android-sdk' 6 PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
7 } 7 }
8 8
......
1 package ly.warp.sdk.activities; 1 package ly.warp.sdk.activities;
2 2
3 import android.Manifest; 3 import android.Manifest;
4 +import android.content.ActivityNotFoundException;
4 import android.content.Context; 5 import android.content.Context;
5 import android.content.Intent; 6 import android.content.Intent;
6 import android.content.pm.PackageManager; 7 import android.content.pm.PackageManager;
...@@ -287,9 +288,13 @@ public class ShopsActivity extends FragmentActivity implements View.OnClickListe ...@@ -287,9 +288,13 @@ public class ShopsActivity extends FragmentActivity implements View.OnClickListe
287 WarplyAnalyticsManager.logTrackersEvent(this, "click", "SeeShopWebsite"); 288 WarplyAnalyticsManager.logTrackersEvent(this, "click", "SeeShopWebsite");
288 289
289 if (!TextUtils.isEmpty(mMerchant.getWebsite())) { 290 if (!TextUtils.isEmpty(mMerchant.getWebsite())) {
290 - Intent intent = new Intent(Intent.ACTION_VIEW); 291 + try {
291 - intent.setData(Uri.parse(mMerchant.getWebsite())); 292 + Intent intent = new Intent(Intent.ACTION_VIEW);
292 - startActivity(intent); 293 + intent.setData(Uri.parse(mMerchant.getWebsite()));
294 + startActivity(intent);
295 + } catch (ActivityNotFoundException e) {
296 + e.printStackTrace();
297 + }
293 } 298 }
294 } 299 }
295 300
......