mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-23 16:21:26 +01:00
Use method reference when sorting providers
This commit is contained in:
parent
755d743b06
commit
1b88cc39a9
@ -83,7 +83,7 @@ class LocationTracker @Inject constructor(
|
||||
onNoLocationProviderAvailable()
|
||||
} else {
|
||||
// Take GPS first
|
||||
providers.sortedByDescending { getProviderPriority(it) }
|
||||
providers.sortedByDescending(::getProviderPriority)
|
||||
.mapNotNull { provider ->
|
||||
Timber.d("track location using $provider")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user