supression de log inutil

master
Bastien OLLIER 2 years ago
parent fbc753bbf2
commit 78303c6fbf

@ -14,8 +14,6 @@ fun getRestaurants(lat: Double, lon: Double, radius: Int): List<RestaurantData>
try {
val response = apiInterface.getRestaurants(lat, lon, radius)
Log.e("Debug", "${lat},${lon}")
Log.e("Debug", response.toString())
response.results.forEach {
listRestaurant += RestaurantData(it.position.lat,it.position.lon,it.poi.name,it.poi.phone,it.address.freeformAddress)
}

@ -15,6 +15,7 @@ import androidx.core.content.ContextCompat
class LocationListener(private val context: Context) : LocationListener {
var latitude: Double = 0.0
get() = field
var longitude: Double = 0.0

@ -83,7 +83,6 @@ class FirstFragment: Fragment(R.layout.fragment_map_page) {
if(listRestaurant.isEmpty()){
Toast.makeText(requireContext(), "Pas de restaurants trouver", Toast.LENGTH_SHORT).show()
}
mapView?.getMapAsync { map ->

@ -32,8 +32,6 @@
mapbox:mapbox_uiLogo="false">
</com.mapbox.mapboxsdk.maps.MapView>
</LinearLayout>
<com.google.android.material.floatingactionbutton.FloatingActionButton

Loading…
Cancel
Save