mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 05:13:53 +01:00
Add comments
This commit is contained in:
parent
fd515deeb2
commit
a77c3c45d4
1 changed files with 3 additions and 0 deletions
|
|
@ -73,8 +73,11 @@ public class NearbyParentFragmentPresenter
|
||||||
public void initializeNearbyOperations() {
|
public void initializeNearbyOperations() {
|
||||||
locationManager.addLocationListener(this);
|
locationManager.addLocationListener(this);
|
||||||
nearbyParentFragmentView.registerLocationUpdates(locationManager);
|
nearbyParentFragmentView.registerLocationUpdates(locationManager);
|
||||||
|
// Nearby buttons should be active, they should be deactive only during update
|
||||||
lockNearby(false);
|
lockNearby(false);
|
||||||
|
//This will start a consequence to check GPS depending on different API
|
||||||
nearbyParentFragmentView.checkGps(locationManager);
|
nearbyParentFragmentView.checkGps(locationManager);
|
||||||
|
//We will know when we went offline and online again
|
||||||
nearbyParentFragmentView.addNetworkBroadcastReceiver();
|
nearbyParentFragmentView.addNetworkBroadcastReceiver();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue