1
0
Fork 0

For #11613: Expand toolbar onUrlChanged

master
Sawyer Blatz 2020-06-23 14:05:55 -07:00 committed by Emily Kager
parent be5213e944
commit 13c8abe3dc
1 changed files with 1 additions and 8 deletions

View File

@ -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()
}