Skip to content

Commit a5ef47f

Browse files
修改电话拨打
改为无需权限的调起拨号界面。
1 parent 99daf21 commit a5ef47f

File tree

1 file changed

+1
-1
lines changed
  • androidframework/src/main/java/com/blankj/androidframework/utils

1 file changed

+1
-1
lines changed

androidframework/src/main/java/com/blankj/androidframework/utils/PhoneUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public static String getPhoneStatus(Context context) {
100100
* 拨打电话
101101
*/
102102
public static void callDial(Context context, String phoneNumber) {
103-
context.startActivity(new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + phoneNumber)));
103+
context.startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + phoneNumber)));
104104
}
105105

106106
/**

0 commit comments

Comments
 (0)