[android] Remove duplicate drawables

Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
Jean-Baptiste
2025-11-21 18:05:18 +01:00
committed by x7z4w
parent 72920bb930
commit d5f640c6d0
7 changed files with 5 additions and 19 deletions

View File

@@ -177,7 +177,7 @@ public final class UiHelpers
{
case LocationState.PENDING_POSITION, LocationState.NOT_FOLLOW_NO_POSITION ->
drawableRes = R.drawable.ic_location_off;
case LocationState.NOT_FOLLOW -> drawableRes = R.drawable.ic_not_follow;
case LocationState.NOT_FOLLOW -> drawableRes = R.drawable.ic_location_crosshair;
case LocationState.FOLLOW ->
{
drawableRes = R.drawable.ic_follow;

View File

@@ -67,7 +67,7 @@ public class MyPositionButton
{
case LocationState.PENDING_POSITION -> R.drawable.ic_menu_location_pending;
case LocationState.NOT_FOLLOW_NO_POSITION -> R.drawable.ic_location_off;
case LocationState.NOT_FOLLOW -> R.drawable.ic_not_follow;
case LocationState.NOT_FOLLOW -> R.drawable.ic_location_crosshair;
case LocationState.FOLLOW -> R.drawable.ic_follow;
case LocationState.FOLLOW_AND_ROTATE -> R.drawable.ic_follow_and_rotate;
default -> throw new IllegalArgumentException("Invalid button mode: " + mode);