Skip to content

Commit

Permalink
Fix dialing
Browse files Browse the repository at this point in the history
  • Loading branch information
benwicks committed Jul 2, 2019
1 parent 2b10549 commit 0cab117
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public static void sendEmail(@NonNull Context context, @NonNull String email) {

public static void openDialer(@NonNull Context context, @NonNull String phone) {
Intent intent = new Intent(Intent.ACTION_DIAL, Uri.fromParts("tel", phone, null));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);
}

Expand Down

0 comments on commit 0cab117

Please sign in to comment.