mirror of
https://github.com/bitwarden/android.git
synced 2026-10-23 11:33:22 -05:00
[BWA-32] Sort verification codes by issuer (#127)
This commit is contained in:
1 parent
cbb469e5ab
commit
7ca1eab4b2
1 file changed
+2
+2
@@ -13,10 +13,12 @@ fun List<VerificationCodeItem>.toViewState(
|
||||
ItemListingState.ViewState.Content(
|
||||
favoriteItems = this
|
||||
.filter { it.favorite }
|
||||
.sortedBy { it.issuer }
|
||||
.map {
|
||||
it.toDisplayItem(alertThresholdSeconds = alertThresholdSeconds)
|
||||
},
|
||||
itemList = filterNot { it.favorite }
|
||||
.sortedBy { it.issuer }
|
||||
.map {
|
||||
it.toDisplayItem(alertThresholdSeconds = alertThresholdSeconds)
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user