For #15115 - Part 4: Formatted TabTrayView.kt

pull/216/head
Gabriel Luong 4 years ago
parent 6c77cdab41
commit a001004add

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