From 3d1d146c9401de62bd335047427484c01243e0c3 Mon Sep 17 00:00:00 2001 From: "codrut.topliceanu" Date: Wed, 1 Apr 2020 13:06:05 +0300 Subject: [PATCH] For #9549 - Scrolling to top sites now includes header. --- .../org/mozilla/fenix/home/sessioncontrol/SessionControlView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/SessionControlView.kt b/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/SessionControlView.kt index d5eae4f5ca..4b5730a945 100644 --- a/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/SessionControlView.kt +++ b/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/SessionControlView.kt @@ -205,7 +205,7 @@ class SessionControlView( } loadedTopSites?.run { homeScreenViewModel.shouldScrollToTopSites = false - view.scrollToPosition(stateAdapterList.indexOf(this)) + view.scrollToPosition(0) } } } else {