From e74561b384d86c6d2e2ca13eb439e3a3b51f547e Mon Sep 17 00:00:00 2001 From: rachytski Date: Mon, 8 Oct 2012 13:30:58 +0300 Subject: [PATCH] some minor fixes. --- android/src/com/mapswithme/maps/MWMActivity.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/android/src/com/mapswithme/maps/MWMActivity.java b/android/src/com/mapswithme/maps/MWMActivity.java index 9ba3768f50..307bf45961 100644 --- a/android/src/com/mapswithme/maps/MWMActivity.java +++ b/android/src/com/mapswithme/maps/MWMActivity.java @@ -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); }