mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Move checkGps() to onResume
This commit is contained in:
parent
b377f0146c
commit
aa4d2daf48
1 changed files with 2 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ public class NearbyActivity extends BaseActivity {
|
|||
if (getSupportActionBar() != null) {
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
}
|
||||
checkGps();
|
||||
|
||||
bundle = new Bundle();
|
||||
locationManager = new LocationServiceManager(this);
|
||||
locationManager.registerLocationManager();
|
||||
|
|
@ -150,6 +150,7 @@ public class NearbyActivity extends BaseActivity {
|
|||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
checkGps();
|
||||
}
|
||||
|
||||
protected void refreshView() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue