Skip to content
Browse files

Use convenience-method stopAllServices when status switched to Idle t…

…o notify others, now the headingAngleView gets hidden when the user switches to Idle
  • Loading branch information...
1 parent 8985148 commit f8ed38f8a61e6d6174ac686d326ec16ca75c59e0 @myell0w myell0w committed Mar 11, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 MTLocationManager.m
View
4 MTLocationManager.m
@@ -182,9 +182,7 @@ - (void)locateMeButton:(MTLocateMeButton *)locateMeButton didChangeLocationStatu
switch(locationStatus) {
// if we are currently idle, stop updates
case MTLocationStatusIdle:
- //NSLog(@"Stopped updating");
- [self.locationManager stopUpdatingLocation];
- [self.locationManager stopUpdatingHeading];
+ [self stopAllServices];
break;
// if we are currently searching, start updating location

0 comments on commit f8ed38f

Please sign in to comment.
Something went wrong with that request. Please try again.