@@ -127,8 +127,6 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
127127 super .onViewCreated (view , savedInstanceState );
128128 if (savedInstanceState != null ) {
129129 onOrientationChanged = true ;
130- Log .d ("deneme" ,"onViewCreated" );
131- //refreshView(LOCATION_SIGNIFICANTLY_CHANGED);
132130 }
133131 }
134132
@@ -220,22 +218,17 @@ public void prepareViewsForSheetPosition(int bottomSheetState) {
220218
221219 @ Override
222220 public void onLocationChangedSignificantly (LatLng latLng ) {
223- Log .d ("deneme" ,"onLocationChangedSignificantly" );
224221 refreshView (LOCATION_SIGNIFICANTLY_CHANGED );
225222 }
226223
227224 @ Override
228225 public void onLocationChangedSlightly (LatLng latLng ) {
229- Log .d ("deneme" ,"onLocationChangedSlightly" );
230-
231226 refreshView (LOCATION_SLIGHTLY_CHANGED );
232227 }
233228
234229
235230 @ Override
236231 public void onLocationChangedMedium (LatLng latLng ) {
237- Log .d ("deneme" ,"onLocationChangedMedium" );
238-
239232 // For nearby map actions, there are no differences between 500 meter location change (aka medium change) and slight change
240233 refreshView (LOCATION_SLIGHTLY_CHANGED );
241234 }
@@ -244,7 +237,6 @@ public void onLocationChangedMedium(LatLng latLng) {
244237 public void onWikidataEditSuccessful () {
245238 // Do not refresh nearby map if we are checking other areas with search this area button
246239 if (!nearbyMapFragment .searchThisAreaModeOn ) {
247- Log .d ("deneme" ,"onWikidateEditSuccesful" );
248240 refreshView (MAP_UPDATED );
249241 }
250242 }
@@ -255,7 +247,6 @@ public void onWikidataEditSuccessful() {
255247 * @param locationChangeType defines if location shanged significantly or slightly
256248 */
257249 public void refreshView (LocationServiceManager .LocationChangeType locationChangeType ) {
258- Log .d ("deneme" ,"refreshView" );
259250 Timber .d ("Refreshing nearby places" );
260251 if (lockNearbyView ) {
261252 return ;
@@ -307,7 +298,6 @@ public void refreshView(LocationServiceManager.LocationChangeType locationChange
307298 bundle .clear ();
308299 bundle .putString ("CurLatLng" , gsonCurLatLng );
309300
310- Log .d ("deneme" ,"popuate places is called from here" );
311301 placesDisposable = Observable .fromCallable (() -> nearbyController
312302 .loadAttractionsFromLocation (curLatLng , curLatLng , false , true ))
313303 .subscribeOn (Schedulers .io ())
@@ -341,7 +331,6 @@ public void refreshView(LocationServiceManager.LocationChangeType locationChange
341331 * @param customLatLng Custom area which we will search around
342332 */
343333 public void refreshViewForCustomLocation (LatLng customLatLng , boolean refreshForCurrentLocation ) {
344- Log .d ("deneme" ,"refreshViewForCutomLocatiom" );
345334 if (customLatLng == null ) {
346335 // If null, return
347336 return ;
@@ -370,7 +359,6 @@ public void refreshViewForCustomLocation(LatLng customLatLng, boolean refreshFor
370359 * @param nearbyPlacesInfo This variable has place list information and distances.
371360 */
372361 private void populatePlacesFromCustomLocation (NearbyController .NearbyPlacesInfo nearbyPlacesInfo ) {
373- Log .d ("deneme" ,"populatePlacesFromCustomLocation" );
374362 //NearbyMapFragment nearbyMapFragment = getMapFragment();
375363 if (nearbyMapFragment != null ) {
376364 nearbyMapFragment .searchThisAreaButtonProgressBar .setVisibility (View .GONE );
@@ -387,8 +375,6 @@ private void populatePlacesFromCustomLocation(NearbyController.NearbyPlacesInfo
387375 }
388376
389377 private void populatePlaces (NearbyController .NearbyPlacesInfo nearbyPlacesInfo ) {
390- Log .d ("deneme" ,"populatePlaces" );
391-
392378 Timber .d ("Populating nearby places" );
393379 List <Place > placeList = nearbyPlacesInfo .placeList ;
394380 LatLng [] boundaryCoordinates = nearbyPlacesInfo .boundaryCoordinates ;
@@ -441,9 +427,6 @@ private void lockNearbyView(boolean lock) {
441427 }
442428
443429 private void updateMapFragment (boolean updateViaButton , boolean isSlightUpdate , @ Nullable LatLng customLatLng , @ Nullable NearbyController .NearbyPlacesInfo nearbyPlacesInfo ) {
444- Log .d ("deneme" ,"update Map fragment" +" updateViaButton:" +updateViaButton +", isSlightUpdate:" +isSlightUpdate );
445- Log .d ("deneme" ,"update Map fragment status" +" checking around:" +nearbyMapFragment .checkingAround +", searchThisAreaModeOn:" +nearbyMapFragment .searchThisAreaModeOn +", onOrientationChanged:" +onOrientationChanged );
446-
447430 if (nearbyMapFragment .checkingAround ) {
448431 return ;
449432 }
@@ -470,7 +453,6 @@ private void updateMapFragment(boolean updateViaButton, boolean isSlightUpdate,
470453 || curLatLng .getLatitude () > nearbyMapFragment .boundaryCoordinates [1 ].getLatitude ()
471454 || curLatLng .getLongitude () < nearbyMapFragment .boundaryCoordinates [2 ].getLongitude ()
472455 || curLatLng .getLongitude () > nearbyMapFragment .boundaryCoordinates [3 ].getLongitude ())) {
473- Log .d ("deneme" ,"boundary is working" );
474456 // populate places
475457 placesDisposable = Observable .fromCallable (() -> nearbyController
476458 .loadAttractionsFromLocation (curLatLng , curLatLng , false , updateViaButton ))
@@ -657,7 +639,6 @@ private void checkLocationPermission() {
657639 Timber .d ("Checking location permission" );
658640 if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .M ) {
659641 if (locationManager .isLocationPermissionGranted ()) {
660- Log .d ("deneme" ,"Check location permission if" );
661642 refreshView (LOCATION_SIGNIFICANTLY_CHANGED );
662643 } else {
663644 // Should we show an explanation?
@@ -684,7 +665,6 @@ private void checkLocationPermission() {
684665 }
685666 }
686667 } else {
687- Log .d ("deneme" ,"Check location permission else" );
688668 refreshView (LOCATION_SIGNIFICANTLY_CHANGED );
689669 }
690670 }
@@ -703,10 +683,7 @@ private void addNetworkBroadcastReceiver() {
703683 public void onReceive (Context context , Intent intent ) {
704684 if (snackbar != null ) {
705685 if (NetworkUtils .isInternetConnectionEstablished (getActivity ())) {
706- Log .d ("deneme" ,"NetworkUtils.isInternetConnectionEstablished(getActivity())" );
707686 if (isNetworkErrorOccured ) {
708- Log .d ("deneme" ,"NetworkUtils.isInternetConnectionEstablished(getActivity())" );
709- Log .d ("deneme" ,"isNetworkErrorOccured refreshed" );
710687 refreshView (LOCATION_SIGNIFICANTLY_CHANGED );
711688 isNetworkErrorOccured = false ;
712689 }
@@ -731,7 +708,6 @@ public void onResume() {
731708 }
732709
733710 public void onTabSelected (boolean onOrientationChanged ) {
734- Log .d ("deneme***" ,"onTabSelected" );
735711 Timber .d ("On nearby tab selected" );
736712 this .onOrientationChanged = onOrientationChanged ;
737713 performNearbyOperations ();
0 commit comments