Commit 9ec1f8e2 authored by ekager's avatar ekager Committed by Mihai Adrian
Browse files

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

parent c8d8a700
......@@ -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()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment