mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
Fixed empty dialer after app started by click on SIP URI in addressbook
This commit is contained in:
parent
b36cdbc343
commit
4b9d24420b
1 changed files with 3 additions and 1 deletions
|
|
@ -78,15 +78,17 @@ class DialerFragment : SecureFragment<DialerFragmentBinding>() {
|
|||
sharedViewModel.pendingCallTransfer = arguments?.getBoolean("Transfer") ?: false
|
||||
Log.i("[Dialer] Is pending call transfer: ${sharedViewModel.pendingCallTransfer}")
|
||||
}
|
||||
|
||||
if (arguments?.containsKey("URI") == true) {
|
||||
val address = arguments?.getString("URI") ?: ""
|
||||
Log.i("[Dialer] Found URI to call: $address")
|
||||
val skipAutoCall = arguments?.getBoolean("SkipAutoCallStart") ?: false
|
||||
|
||||
if (corePreferences.callRightAway && !skipAutoCall) {
|
||||
Log.i("[Dialer] Call right away setting is enabled, start the call to $address")
|
||||
viewModel.directCall(address)
|
||||
} else {
|
||||
viewModel.enteredUri.value = address
|
||||
sharedViewModel.dialerUri = address
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue