1
0
Fork 0

For #8981 - Sort devices in share list by last access time

master
ekager 2020-05-06 17:36:40 -07:00 committed by Mihai Adrian
parent c8d8a700fe
commit 9ec1f8e2d8
1 changed files with 1 additions and 0 deletions

View File

@ -184,6 +184,7 @@ class ShareViewModel(application: Application) : AndroidViewModel(application) {
?.otherDevices
.orEmpty()
.filter { it.capabilities.contains(DeviceCapability.SEND_TAB) }
.sortedByDescending { it.lastAccessTime }
val list = mutableListOf<SyncShareOption>()
if (shareableDevices.isEmpty()) {