Skip to content

Commit 5790ff2

Browse files
authored
fix: prevents infinite recursion when getting the location permission (#1813)
* fix: prevents infinite recursion when getting the location permission * remove unnecessary imports
1 parent 561e829 commit 5790ff2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tutorials/java/CurrentPlaceDetailsOnMap/app/src/main/java/com/example/currentplacedetailsonmap/MapsActivityCurrentPlace.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,6 @@ private void updateLocationUI() {
440440
map.setMyLocationEnabled(false);
441441
map.getUiSettings().setMyLocationButtonEnabled(false);
442442
lastKnownLocation = null;
443-
getLocationPermission();
444443
}
445444
} catch (SecurityException e) {
446445
Log.e("Exception: %s", e.getMessage());

0 commit comments

Comments
 (0)