forked from organicmaps/organicmaps
Highlight "My location" button instead of changing its text.
This commit is contained in:
parent
99813edd51
commit
5be41e3dcb
1 changed files with 5 additions and 5 deletions
|
@ -21,15 +21,15 @@ typedef FrameWork<model::FeaturesFetcher, Navigator, iphone::WindowHandle> frame
|
|||
{
|
||||
if (m_locationController.active)
|
||||
{
|
||||
[m_locationController Stop];
|
||||
((UIBarItem *)sender).title = @"My Position";
|
||||
[m_locationController Stop];
|
||||
((UIBarButtonItem *)sender).style = UIBarButtonItemStyleBordered;
|
||||
m_framework->DisableMyPositionAndHeading();
|
||||
}
|
||||
else
|
||||
{
|
||||
[m_locationController Start];
|
||||
m_isDirtyPosition = true;
|
||||
((UIBarItem *)sender).title = @"Disable GPS";
|
||||
[m_locationController Start];
|
||||
((UIBarButtonItem *)sender).style = UIBarButtonItemStyleDone;
|
||||
m_isDirtyPosition = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue