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/11613: Expand toolbar onUrlChanged
This commit is contained in:
parent
8e9f5516d7
commit
ae9d06bee5
@ -527,14 +527,7 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Session
|
|||||||
)
|
)
|
||||||
|
|
||||||
session.register(observer = object : Session.Observer {
|
session.register(observer = object : Session.Observer {
|
||||||
override fun onNavigationStateChanged(
|
override fun onUrlChanged(session: Session, url: String) {
|
||||||
session: Session,
|
|
||||||
canGoBack: Boolean,
|
|
||||||
canGoForward: Boolean
|
|
||||||
) {
|
|
||||||
// Once https://bugzilla.mozilla.org/show_bug.cgi?id=1626338 is fixed, we can
|
|
||||||
// rely solely on `onLoadRequest` entirely, but as it stands that is not called
|
|
||||||
// for history navigation (back or forward).
|
|
||||||
browserToolbarView.expand()
|
browserToolbarView.expand()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user