mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
adding a null check at the account picker during calls
This commit is contained in:
@ -267,10 +267,12 @@ class CallActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun showPhoneAccountPicker() {
|
private fun showPhoneAccountPicker() {
|
||||||
|
if (callContact != null) {
|
||||||
getHandleToUse(intent, callContact!!.number) { handle ->
|
getHandleToUse(intent, callContact!!.number) { handle ->
|
||||||
CallManager.call?.phoneAccountSelected(handle, false)
|
CallManager.call?.phoneAccountSelected(handle, false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun endCall() {
|
private fun endCall() {
|
||||||
CallManager.reject()
|
CallManager.reject()
|
||||||
|
Reference in New Issue
Block a user