mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-11-03 16:23:54 +01:00
make location manager singleton
This commit is contained in:
parent
d4bafd94e0
commit
a59bf1bc4b
2 changed files with 14 additions and 3 deletions
|
|
@ -60,7 +60,7 @@ public class NearbyActivity extends NavigationBaseActivity {
|
|||
sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
|
||||
setContentView(R.layout.activity_nearby);
|
||||
ButterKnife.bind(this);
|
||||
locationManager = new LocationServiceManager(this);
|
||||
locationManager = LocationServiceManager.getInstance();
|
||||
checkLocationPermission();
|
||||
bundle = new Bundle();
|
||||
initDrawer();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue