mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Add checkGPS comment
This commit is contained in:
parent
d6cec36f09
commit
f0357fca01
1 changed files with 1 additions and 0 deletions
|
|
@ -158,6 +158,7 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp
|
||||||
case LOCATION_REQUEST: {
|
case LOCATION_REQUEST: {
|
||||||
if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
|
if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
|
||||||
Timber.d("Location permission granted, refreshing view");
|
Timber.d("Location permission granted, refreshing view");
|
||||||
|
//Still need to check if GPS is enabled
|
||||||
checkGps();
|
checkGps();
|
||||||
lastKnownLocation = locationManager.getLKL();
|
lastKnownLocation = locationManager.getLKL();
|
||||||
refreshView(LocationServiceManager.LocationChangeType.PERMISSION_JUST_GRANTED);
|
refreshView(LocationServiceManager.LocationChangeType.PERMISSION_JUST_GRANTED);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue