Skip to content

Commit

Permalink
Enable location layer rendering when needed opensciencemap#171
Browse files Browse the repository at this point in the history
  • Loading branch information
devemux86 committed Oct 14, 2016
1 parent e53523b commit 58095f3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ protected void onResume() {
super.onResume();

enableAvailableProviders();
locationLayer.setEnabled(true);
}

@Override
protected void onPause() {
super.onPause();

locationManager.removeUpdates(this);
locationLayer.setEnabled(false);
}

@Override
Expand Down

0 comments on commit 58095f3

Please sign in to comment.