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:
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…
Reference in New Issue
Block a user