mirror of
https://github.com/googlemaps/android-samples.git
synced 2025-12-08 18:02:20 +00:00
fix: prevents infinite recursion when getting the location permission (#1813)
* fix: prevents infinite recursion when getting the location permission * remove unnecessary imports
This commit is contained in:
parent
561e82926e
commit
5790ff2ad7
@ -440,7 +440,6 @@ public class MapsActivityCurrentPlace extends AppCompatActivity
|
||||
map.setMyLocationEnabled(false);
|
||||
map.getUiSettings().setMyLocationButtonEnabled(false);
|
||||
lastKnownLocation = null;
|
||||
getLocationPermission();
|
||||
}
|
||||
} catch (SecurityException e) {
|
||||
Log.e("Exception: %s", e.getMessage());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user