Skip to content

Commit

Permalink
Fixes opening deeplinks in inapp messages
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Stratakis <astratakis@onliquid.com>
  • Loading branch information
alexisstrat committed Mar 1, 2016
1 parent f70540d commit 05d99ae
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 05d99ae

Please sign in to comment.