store default SIM cards to use system-wide too

This commit is contained in:
tibbi
2020-05-11 15:21:05 +02:00
parent 067fbf1b45
commit 335129aee4
4 changed files with 13 additions and 15 deletions

View File

@ -43,7 +43,7 @@ class DialerActivity : SimpleActivity() {
@SuppressLint("MissingPermission")
private fun initOutgoingCall() {
try {
getHandleToUse(intent, callNumber.toString()) { handle ->
getHandleToUse(intent, callNumber.toString()) { handle, setAsDefault ->
Bundle().apply {
putParcelable(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, handle)
putBoolean(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, false)