mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Disable back gesture/button while on EndedCall fragment to prevent user from leaving it until timer has expired
This commit is contained in:
parent
567ef561c0
commit
ac1e636caa
1 changed files with 4 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ import android.os.SystemClock
|
|||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import androidx.activity.addCallback
|
||||
import androidx.annotation.UiThread
|
||||
import androidx.lifecycle.ViewModelProvider
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
|
|
@ -57,6 +58,9 @@ class EndedCallFragment : GenericCallFragment() {
|
|||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
|
||||
// Disable back gesture / button
|
||||
requireActivity().onBackPressedDispatcher.addCallback { }
|
||||
|
||||
callViewModel = requireActivity().run {
|
||||
ViewModelProvider(this)[CurrentCallViewModel::class.java]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue