For #8981 - Sort devices in share list by last access time
parent
c8d8a700fe
commit
9ec1f8e2d8
|
@ -184,6 +184,7 @@ class ShareViewModel(application: Application) : AndroidViewModel(application) {
|
||||||
?.otherDevices
|
?.otherDevices
|
||||||
.orEmpty()
|
.orEmpty()
|
||||||
.filter { it.capabilities.contains(DeviceCapability.SEND_TAB) }
|
.filter { it.capabilities.contains(DeviceCapability.SEND_TAB) }
|
||||||
|
.sortedByDescending { it.lastAccessTime }
|
||||||
|
|
||||||
val list = mutableListOf<SyncShareOption>()
|
val list = mutableListOf<SyncShareOption>()
|
||||||
if (shareableDevices.isEmpty()) {
|
if (shareableDevices.isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue