|
|
|
|
@ -14,7 +14,6 @@ import net.pokeranalytics.android.ui.view.rowrepresentable.CustomizableRowRepres |
|
|
|
|
import net.pokeranalytics.android.ui.view.rowrepresentable.LocationRow |
|
|
|
|
import net.pokeranalytics.android.ui.view.rowrepresentable.SimpleRow |
|
|
|
|
import net.pokeranalytics.android.util.NULL_TEXT |
|
|
|
|
import timber.log.Timber |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Custom EditableDataFragment to manage the LOCATE_ME case |
|
|
|
|
@ -181,7 +180,6 @@ class LocationDataFragment : EditableDataFragment(), StaticRowRepresentableDataS |
|
|
|
|
// Try to get the location of the user |
|
|
|
|
parentActivity.findCurrentLocation {currentLocation -> |
|
|
|
|
currentLocation?.let { |
|
|
|
|
Timber.d("Current location: ${it.latitude}, ${it.longitude}") |
|
|
|
|
location.latitude = currentLocation.latitude |
|
|
|
|
location.longitude = currentLocation.longitude |
|
|
|
|
} |
|
|
|
|
|