mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-23 09:56:00 +03:00
Use method reference when sorting providers
This commit is contained in:
parent
755d743b06
commit
1b88cc39a9
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue