2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-17 15:26:23 +00:00

[fenix] Closes https://github.com/mozilla-mobile/fenix/issues/814: Scrolls to top after session restore

This commit is contained in:
Sawyer Blatz 2019-03-08 08:30:11 -08:00 committed by Jeff Boek
parent e1c4698859
commit a3b1210b35

View File

@ -224,6 +224,7 @@ class HomeFragment : Fragment() {
requireComponents.core.sessionStorage.archive(requireComponents.core.sessionManager)
it.archivedSession.bundle.restoreSnapshot(requireComponents.core.engine)?.apply {
requireComponents.core.sessionManager.restore(this)
homeScrollView.smoothScrollTo(0, 0)
}
}
is SessionsAction.Delete -> {