mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-13 07:34:31 +00:00
[android] Remove duplicate drawables
Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user