Revert "For #19739 - Moves argument to initial state init"
This reverts commit f198e110d7
.
This commit is contained in:
parent
f198e110d7
commit
aeb186f79c
|
@ -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…
Reference in New Issue
Block a user