From ea83bf83db650c9f6c74bf65157e5bdd1fb92e78 Mon Sep 17 00:00:00 2001 From: Gabriel Luong Date: Tue, 6 Oct 2020 13:05:31 -0400 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/15115 - Part 4: Formatted TabTrayView.kt --- .../app/src/main/java/org/mozilla/fenix/tabtray/TabTrayView.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/tabtray/TabTrayView.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/tabtray/TabTrayView.kt index 6cc2921e95fb..88d372d999fa 100644 --- a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/tabtray/TabTrayView.kt +++ b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/tabtray/TabTrayView.kt @@ -654,9 +654,9 @@ class TabTrayView( // We add the offset, because the layoutManager is initialized with `reverseLayout`. // We also add 1 to display the tab item above the selected browser tab. val recyclerViewIndex = selectedBrowserTabIndex + - collectionsButtonAdapter.itemCount + - syncedTabsController.adapter.itemCount + - 1 + collectionsButtonAdapter.itemCount + + syncedTabsController.adapter.itemCount + + 1 layoutManager?.scrollToPosition(recyclerViewIndex) } -- 2.11.4.GIT