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

For #15115 - Part 4: Formatted TabTrayView.kt

This commit is contained in:
Gabriel Luong 2020-10-06 13:05:31 -04:00
parent 6c77cdab41
commit a001004add

View File

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