Update default mode icon
This commit is contained in:
parent
3ebe82f552
commit
4522ff2424
3 changed files with 4 additions and 2 deletions
BIN
OsmAnd/res/drawable-hdpi/default_mode_small.png
Normal file
BIN
OsmAnd/res/drawable-hdpi/default_mode_small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.8 KiB |
BIN
OsmAnd/res/drawable/default_mode_small.png
Normal file
BIN
OsmAnd/res/drawable/default_mode_small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
|
@ -143,8 +143,10 @@ public class MapControlsLayer implements OsmandMapLayer {
|
|||
cacheAppModeIcon = view.getResources().getDrawable(R.drawable.bicycle_small);
|
||||
} else if(appMode == ApplicationMode.CAR){
|
||||
cacheAppModeIcon = view.getResources().getDrawable(R.drawable.car_small);
|
||||
} else {
|
||||
} else if(appMode == ApplicationMode.PEDESTRIAN){
|
||||
cacheAppModeIcon = view.getResources().getDrawable(R.drawable.pedestrian_small);
|
||||
} else {
|
||||
cacheAppModeIcon = view.getResources().getDrawable(R.drawable.default_mode_small);
|
||||
}
|
||||
int l = modeShadow.getBounds().left + (modeShadow.getBounds().width() - cacheAppModeIcon.getMinimumWidth()) / 2;
|
||||
int t = (int) (modeShadow.getBounds().top + 5 * scaleCoefficient);
|
||||
|
@ -159,7 +161,7 @@ public class MapControlsLayer implements OsmandMapLayer {
|
|||
|
||||
private void onApplicationModePress() {
|
||||
final QuickAction mQuickAction = new QuickAction(backToMenuButton);
|
||||
int[] icons = new int[] { R.drawable.pedestrian_small, R.drawable.bicycle_small, R.drawable.car_small, R.drawable.pedestrian_small };
|
||||
int[] icons = new int[] { R.drawable.default_mode_small, R.drawable.bicycle_small, R.drawable.car_small, R.drawable.pedestrian_small };
|
||||
int[] values = new int[] { R.string.app_mode_default, R.string.app_mode_bicycle, R.string.app_mode_car,
|
||||
R.string.app_mode_pedestrian };
|
||||
final ApplicationMode[] modes = new ApplicationMode[] { ApplicationMode.DEFAULT, ApplicationMode.BICYCLE, ApplicationMode.CAR,
|
||||
|
|
Loading…
Reference in a new issue