mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 22:45:18 +01:00
Use ACTION_CALL instead of ACTION_DIAL for user's convenience.
This commit is contained in:
parent
d3e2ae18e8
commit
ed10848336
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue