From 3be8b0594973a789f635f384de8d7abe84b2b20e Mon Sep 17 00:00:00 2001 From: Viktor Govako Date: Wed, 19 Oct 2022 23:33:26 +0300 Subject: [PATCH] [android] Separate icon for NOT_FOLLOW_NO_POSITION state. Signed-off-by: Viktor Govako --- android/res/drawable/ic_location_off.xml | 10 ++++++++++ .../mapswithme/maps/widget/menu/MyPositionButton.java | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 android/res/drawable/ic_location_off.xml diff --git a/android/res/drawable/ic_location_off.xml b/android/res/drawable/ic_location_off.xml new file mode 100644 index 0000000000..bfea6c4255 --- /dev/null +++ b/android/res/drawable/ic_location_off.xml @@ -0,0 +1,10 @@ + + + diff --git a/android/src/com/mapswithme/maps/widget/menu/MyPositionButton.java b/android/src/com/mapswithme/maps/widget/menu/MyPositionButton.java index 6032005176..86dcbfcaf2 100644 --- a/android/src/com/mapswithme/maps/widget/menu/MyPositionButton.java +++ b/android/src/com/mapswithme/maps/widget/menu/MyPositionButton.java @@ -69,6 +69,8 @@ public class MyPositionButton drawableRes = ThemeUtils.getResource(context, R.attr.myPositionButtonAnimation); break; case LocationState.NOT_FOLLOW_NO_POSITION: + drawableRes = R.drawable.ic_location_off; + break; case LocationState.NOT_FOLLOW: drawableRes = R.drawable.ic_not_follow; break;