mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Merge pull request #583 from misaochan/minor-gps-changes
Put checkGps() in onResume
This commit is contained in:
commit
4450917f5c
1 changed files with 3 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ public class NearbyActivity extends BaseActivity {
|
||||||
if (getSupportActionBar() != null) {
|
if (getSupportActionBar() != null) {
|
||||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
}
|
}
|
||||||
checkGps();
|
|
||||||
bundle = new Bundle();
|
bundle = new Bundle();
|
||||||
locationManager = new LocationServiceManager(this);
|
locationManager = new LocationServiceManager(this);
|
||||||
locationManager.registerLocationManager();
|
locationManager.registerLocationManager();
|
||||||
|
|
@ -110,7 +110,7 @@ public class NearbyActivity extends BaseActivity {
|
||||||
startActivityForResult(callGPSSettingIntent, 1);
|
startActivityForResult(callGPSSettingIntent, 1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
alertDialogBuilder.setNegativeButton("Cancel",
|
alertDialogBuilder.setNegativeButton(R.string.menu_cancel_upload,
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
public void onClick(DialogInterface dialog, int id) {
|
public void onClick(DialogInterface dialog, int id) {
|
||||||
dialog.cancel();
|
dialog.cancel();
|
||||||
|
|
@ -150,6 +150,7 @@ public class NearbyActivity extends BaseActivity {
|
||||||
@Override
|
@Override
|
||||||
protected void onResume() {
|
protected void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
checkGps();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void refreshView() {
|
protected void refreshView() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue