Skip to content

Commit

Permalink
Merge pull request #26 from lqd-io/bugfix/deeplink
Browse files Browse the repository at this point in the history
Fixes opening deeplinks in inapp messages
  • Loading branch information
letz committed Mar 1, 2016
2 parents f70540d + 05d99ae commit ca0afff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions liquid/src/main/java/io/lqd/sdk/visual/Modal.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ public void onClick(View v) {
Intent mIntent = new Intent(Intent.ACTION_VIEW);
if (cta.getDeepLink() != null) {
try {
mIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mIntent.setData(Uri.parse(cta.getDeepLink()));
Liquid.getInstance().trackCta(cta);
mContext.startActivity(mIntent);
Expand Down
3 changes: 2 additions & 1 deletion liquid/src/main/java/io/lqd/sdk/visual/SlideUp.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,12 @@ public void onClick(View v) {
Intent mIntent = new Intent(Intent.ACTION_VIEW);
if (cta.getDeepLink() != null) {
try {
mIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mIntent.setData(Uri.parse(cta.getDeepLink()));
Liquid.getInstance().trackCta(cta);
mContext.startActivity(mIntent);
} catch (Exception e) {
LQLog.infoVerbose("Canceled or not properly assigned");
LQLog.infoVerbose("Canceled or not properly assigned to deeplink or URL");
}
}
mPopupWindow.dismiss();
Expand Down

0 comments on commit ca0afff

Please sign in to comment.