[fenix] Revert "For https://github.com/mozilla-mobile/fenix/issues/19739 - Moves argument to initial state init"

This reverts commit e8948798bff353fcd55ff2df45a651f77790880e.
pull/600/head
Jonathan Almeida 3 years ago committed by Jonathan Almeida
parent 94311316ed
commit 241f32d1e4

@ -86,12 +86,7 @@ class TabsTrayFragment : AppCompatDialogFragment() {
val containerView = inflater.inflate(R.layout.fragment_tab_tray_dialog, container, false)
inflater.inflate(R.layout.component_tabstray2, containerView as ViewGroup, true)
val initState =
if (requireArguments().getBoolean(EXTRA_MULTI_SELECT))
TabsTrayState(mode = TabsTrayState.Mode.Select(emptySet()))
else TabsTrayState()
tabsTrayStore = StoreProvider.get(this) { TabsTrayStore(initialState = initState) }
tabsTrayStore = StoreProvider.get(this) { TabsTrayStore() }
fabView = LayoutInflater.from(containerView.context)
.inflate(R.layout.component_tabstray_fab, containerView, true)
@ -266,6 +261,10 @@ class TabsTrayFragment : AppCompatDialogFragment() {
owner = this,
view = view
)
if (requireArguments().getBoolean(EXTRA_MULTI_SELECT)) {
tabsTrayStore.dispatch(TabsTrayAction.EnterSelectMode)
}
}
override fun onConfigurationChanged(newConfig: Configuration) {

Loading…
Cancel
Save