From 0cab1170ae9e3bc47f1f1de2425e44726cda7e7d Mon Sep 17 00:00:00 2001 From: Ben Wicks Date: Tue, 2 Jul 2019 10:30:47 -0500 Subject: [PATCH] Fix dialing --- .../main/java/com/crisolutions/commonlib/utils/SharingUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/commonlib/src/main/java/com/crisolutions/commonlib/utils/SharingUtils.java b/commonlib/src/main/java/com/crisolutions/commonlib/utils/SharingUtils.java index fe1236b..94e864d 100644 --- a/commonlib/src/main/java/com/crisolutions/commonlib/utils/SharingUtils.java +++ b/commonlib/src/main/java/com/crisolutions/commonlib/utils/SharingUtils.java @@ -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); }