mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/12791: Fix issue with undo snackbar last tab
This commit is contained in:
parent
b4a0e122d1
commit
6317a79222
@ -206,7 +206,7 @@ class TabTrayDialogFragment : AppCompatDialogFragment() {
|
||||
}
|
||||
|
||||
// Check if this is the last tab of this session type
|
||||
val isLastOpenTab = sessionManager.sessions.filter { snapshot.session.private }.size == 1
|
||||
val isLastOpenTab = sessionManager.sessions.filter { snapshot.session.private == it.private }.size == 1
|
||||
val rootView = if (isLastOpenTab) { requireActivity().getRootView()!! } else { requireView().tabLayout }
|
||||
val anchorView = if (isLastOpenTab) { null } else { snackbarAnchor }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user