forked from organicmaps/organicmaps
some minor fixes.
This commit is contained in:
parent
faa6b05aff
commit
e74561b384
1 changed files with 8 additions and 1 deletions
|
@ -542,8 +542,12 @@ public class MWMActivity extends NvEventQueueActivity implements LocationService
|
|||
if (newStatus == LocationService.FIRST_EVENT)
|
||||
{
|
||||
findViewById(R.id.map_button_myposition).setBackgroundResource(R.drawable.myposition_button_found);
|
||||
final View v = findViewById(R.id.map_button_myposition);
|
||||
|
||||
v.setBackgroundResource(R.drawable.myposition_button_found);
|
||||
v.setSelected(true);
|
||||
|
||||
m_hasLocation = true;
|
||||
m_suggestAutoFollowMode = mApplication.nativeGetBoolean("SuggestAutoFollowMode", true);
|
||||
}
|
||||
|
||||
nativeLocationStatusChanged(newStatus);
|
||||
|
@ -603,7 +607,10 @@ public class MWMActivity extends NvEventQueueActivity implements LocationService
|
|||
else
|
||||
{
|
||||
if (m_hasLocation)
|
||||
{
|
||||
v.setBackgroundResource(R.drawable.myposition_button_found);
|
||||
v.setSelected(true);
|
||||
}
|
||||
else
|
||||
v.setBackgroundResource(R.drawable.myposition_button_normal);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue