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 { try {
val response = apiInterface.getRestaurants(lat, lon, radius) val response = apiInterface.getRestaurants(lat, lon, radius)
Log.e("Debug", "${lat},${lon}")
Log.e("Debug", response.toString())
response.results.forEach { response.results.forEach {
listRestaurant += RestaurantData(it.position.lat,it.position.lon,it.poi.name,it.poi.phone,it.address.freeformAddress) 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 { class LocationListener(private val context: Context) : LocationListener {
var latitude: Double = 0.0 var latitude: Double = 0.0
get() = field get() = field
var longitude: Double = 0.0 var longitude: Double = 0.0

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

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

Loading…
Cancel
Save