mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Reverting, not really working
This commit is contained in:
parent
48db3d4aa2
commit
b6f8fb3354
2 changed files with 4 additions and 28 deletions
|
|
@ -44,10 +44,6 @@ class CallsFragment : GenericFragment() {
|
|||
|
||||
private lateinit var binding: CallsFragmentBinding
|
||||
|
||||
// Otherwise when going into StartCallFragment and going back,
|
||||
// CallFragment will resume and ask to open the pane
|
||||
private var preventSlidingPaneOpening = false
|
||||
|
||||
override fun onCreateView(
|
||||
inflater: LayoutInflater,
|
||||
container: ViewGroup?,
|
||||
|
|
@ -68,7 +64,6 @@ class CallsFragment : GenericFragment() {
|
|||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
postponeEnterTransition()
|
||||
preventSlidingPaneOpening = true
|
||||
|
||||
binding.lifecycleOwner = viewLifecycleOwner
|
||||
|
||||
|
|
@ -104,14 +99,8 @@ class CallsFragment : GenericFragment() {
|
|||
viewLifecycleOwner
|
||||
) {
|
||||
it.consume {
|
||||
if (!preventSlidingPaneOpening) {
|
||||
Log.i("$TAG Opening sliding pane")
|
||||
binding.slidingPaneLayout.openPane()
|
||||
} else {
|
||||
Log.i(
|
||||
"$TAG We were asked to open the sliding pane but we aren't resumed yet, so not doing it"
|
||||
)
|
||||
}
|
||||
Log.i("$TAG Opening sliding pane")
|
||||
binding.slidingPaneLayout.openPane()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -163,7 +152,6 @@ class CallsFragment : GenericFragment() {
|
|||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
preventSlidingPaneOpening = false
|
||||
sharedViewModel.currentlyDisplayedFragment.value = R.id.callsFragment
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,10 +44,6 @@ class ContactsFragment : GenericFragment() {
|
|||
|
||||
private lateinit var binding: ContactsFragmentBinding
|
||||
|
||||
// Otherwise when going into NewContactFragment and going back,
|
||||
// ContactFragment will resume and ask to open the pane
|
||||
private var preventSlidingPaneOpening = false
|
||||
|
||||
override fun onCreateView(
|
||||
inflater: LayoutInflater,
|
||||
container: ViewGroup?,
|
||||
|
|
@ -68,7 +64,6 @@ class ContactsFragment : GenericFragment() {
|
|||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
postponeEnterTransition()
|
||||
preventSlidingPaneOpening = true
|
||||
|
||||
binding.lifecycleOwner = viewLifecycleOwner
|
||||
|
||||
|
|
@ -111,14 +106,8 @@ class ContactsFragment : GenericFragment() {
|
|||
viewLifecycleOwner
|
||||
) {
|
||||
it.consume {
|
||||
if (!preventSlidingPaneOpening) {
|
||||
Log.i("$TAG Opening sliding pane")
|
||||
binding.slidingPaneLayout.openPane()
|
||||
} else {
|
||||
Log.i(
|
||||
"$TAG We were asked to open the sliding pane but we aren't resumed yet, so not doing it"
|
||||
)
|
||||
}
|
||||
Log.i("$TAG Opening sliding pane")
|
||||
binding.slidingPaneLayout.openPane()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -172,7 +161,6 @@ class ContactsFragment : GenericFragment() {
|
|||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
preventSlidingPaneOpening = false
|
||||
sharedViewModel.currentlyDisplayedFragment.value = R.id.contactsFragment
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue