For #11613: Expand toolbar onUrlChanged
This commit is contained in:
parent
be5213e944
commit
13c8abe3dc
|
@ -527,14 +527,7 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Session
|
|||
)
|
||||
|
||||
session.register(observer = object : Session.Observer {
|
||||
override fun onNavigationStateChanged(
|
||||
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).
|
||||
override fun onUrlChanged(session: Session, url: String) {
|
||||
browserToolbarView.expand()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user