Skip to content

Commit a7b16be

Browse files
authored
Update CustomWebView.java
Fixed issue with `whatsapp://` links
1 parent 905e5ed commit a7b16be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CustomWebView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ public boolean DeepLinkParser(String url){
15311531
return true;
15321532
}else if (url.startsWith("whatsapp:")){
15331533
intent = new Intent(Intent.ACTION_SEND);
1534-
intent.putExtra(Intent.EXTRA_TEXT,Uri.parse(url));
1534+
intent.putExtra(Intent.EXTRA_TEXT,Uri.parse(url).getQueryParameter("text"));
15351535
intent.setType("text/plain");
15361536
intent.setPackage("com.whatsapp");
15371537
activity.startActivity(intent);

0 commit comments

Comments
 (0)