From e8f8ca7335372ae817975cb1cf5369f74e5c6c4b Mon Sep 17 00:00:00 2001 From: bendk Date: Tue, 8 Feb 2022 11:18:39 -0500 Subject: [PATCH] Update components/feature/syncedtabs/src/main/java/mozilla/components/feature/syncedtabs/storage/SyncedTabsStorage.kt Co-authored-by: Jonathan Almeida --- .../components/feature/syncedtabs/storage/SyncedTabsStorage.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/feature/syncedtabs/src/main/java/mozilla/components/feature/syncedtabs/storage/SyncedTabsStorage.kt b/components/feature/syncedtabs/src/main/java/mozilla/components/feature/syncedtabs/storage/SyncedTabsStorage.kt index 68fbe4fa1cf..dc8e0c4fb03 100644 --- a/components/feature/syncedtabs/src/main/java/mozilla/components/feature/syncedtabs/storage/SyncedTabsStorage.kt +++ b/components/feature/syncedtabs/src/main/java/mozilla/components/feature/syncedtabs/storage/SyncedTabsStorage.kt @@ -69,7 +69,7 @@ class SyncedTabsStorage( fxaDevice?.let { SyncedDeviceTabs(fxaDevice, tabs.sortedByDescending { it.lastUsed }) } } .sortedByDescending { - it.tabs.getOrNull(0)?.lastUsed + it.tabs.firstOrNull()?.lastUsed } }