[fenix] For https://github.com/mozilla-mobile/fenix/issues/15115 - Part 4: Formatted TabTrayView.kt

pull/600/head
Gabriel Luong 4 years ago
parent d7f46fa9f5
commit b837358f14

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

Loading…
Cancel
Save