From ed10848336d1cc7cd9ba4ec0dfc7c2ea488bc0cc Mon Sep 17 00:00:00 2001 From: Andrew Kurniadi Date: Wed, 19 Mar 2014 15:53:37 +0700 Subject: [PATCH] Use ACTION_CALL instead of ACTION_DIAL for user's convenience. --- .../src/main/java/org/telegram/ui/UserProfileActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/UserProfileActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/UserProfileActivity.java index 14b9535fd..5e42d83b0 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/UserProfileActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/UserProfileActivity.java @@ -684,7 +684,7 @@ public class UserProfileActivity extends BaseFragment implements NotificationCen public void onClick(DialogInterface dialogInterface, int i) { if (i == 1) { try { - Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:+" + selectedPhone)); + Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:+" + selectedPhone)); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); } catch (Exception e) {