For #4412: Only consume state change when UI initialized
parent
f815ef1dd0
commit
9887945296
|
@ -227,6 +227,27 @@ class BrowserFragment : Fragment(), BackHandler {
|
||||||
browserToolbarView.view.setOnSiteSecurityClickedListener {
|
browserToolbarView.view.setOnSiteSecurityClickedListener {
|
||||||
showQuickSettingsDialog()
|
showQuickSettingsDialog()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
customTabSessionId?.let { customTabSessionId ->
|
||||||
|
customTabsIntegration.set(
|
||||||
|
feature = CustomTabsIntegration(
|
||||||
|
requireContext(),
|
||||||
|
requireComponents.core.sessionManager,
|
||||||
|
toolbar,
|
||||||
|
customTabSessionId,
|
||||||
|
activity,
|
||||||
|
view.nestedScrollQuickAction,
|
||||||
|
view.swipeRefresh,
|
||||||
|
onItemTapped = { browserInteractor.onBrowserToolbarMenuItemTapped(it) }
|
||||||
|
),
|
||||||
|
owner = this,
|
||||||
|
view = view)
|
||||||
|
}
|
||||||
|
|
||||||
|
consumeFrom(browserStore) {
|
||||||
|
quickActionSheetView.update(it)
|
||||||
|
browserToolbarView.update(it)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
contextMenuFeature.set(
|
contextMenuFeature.set(
|
||||||
|
@ -404,27 +425,6 @@ class BrowserFragment : Fragment(), BackHandler {
|
||||||
owner = this,
|
owner = this,
|
||||||
view = view
|
view = view
|
||||||
)
|
)
|
||||||
|
|
||||||
customTabSessionId?.let {
|
|
||||||
customTabsIntegration.set(
|
|
||||||
feature = CustomTabsIntegration(
|
|
||||||
requireContext(),
|
|
||||||
requireComponents.core.sessionManager,
|
|
||||||
toolbar,
|
|
||||||
it,
|
|
||||||
activity,
|
|
||||||
view.nestedScrollQuickAction,
|
|
||||||
view.swipeRefresh,
|
|
||||||
onItemTapped = { browserInteractor.onBrowserToolbarMenuItemTapped(it) }
|
|
||||||
),
|
|
||||||
owner = this,
|
|
||||||
view = view)
|
|
||||||
}
|
|
||||||
|
|
||||||
consumeFrom(browserStore) {
|
|
||||||
quickActionSheetView.update(it)
|
|
||||||
browserToolbarView.update(it)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun themeReaderViewControlsForPrivateMode(view: View) = with(view) {
|
private fun themeReaderViewControlsForPrivateMode(view: View) = with(view) {
|
||||||
|
|
Loading…
Reference in New Issue