2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-02 03:40:16 +00:00

For #538 - Reverse tabs in list

This commit is contained in:
Emily Kager 2019-04-11 17:40:51 -07:00 committed by Colin Lee
parent 659386bd5e
commit 2a19917619

View File

@ -22,7 +22,7 @@ private fun SessionControlState.toAdapterList(): List<AdapterItem> {
if (tabs.isNotEmpty()) {
items.add(AdapterItem.TabHeader)
tabs.map(AdapterItem::TabItem).forEach { items.add(it) }
tabs.reversed().map(AdapterItem::TabItem).forEach { items.add(it) }
items.add(if (mode == Mode.Private) AdapterItem.DeleteTabs else AdapterItem.ArchiveTabs)
} else {
if (mode == Mode.Private) {