RemoteLocationManager.kt (496B) - raw
1 package me.rhunk.snapenhance 2 3 import me.rhunk.snapenhance.bridge.location.FriendLocation 4 import me.rhunk.snapenhance.bridge.location.LocationManager 5 6 class RemoteLocationManager( 7 private val remoteSideContext: RemoteSideContext 8 ): LocationManager.Stub() { 9 var friendsLocation = listOf<FriendLocation>() 10 private set 11 12 override fun provideFriendsLocation(friendsLocation: List<FriendLocation>) { 13 this.friendsLocation = friendsLocation.sortedBy { -it.lastUpdated } 14 } 15 }