better line order

This commit is contained in:
sonora 2016-01-10 19:20:27 +01:00
parent 4d1a75b001
commit 5289c719e9
2 changed files with 2 additions and 2 deletions

View file

@ -682,8 +682,8 @@ public class WaypointHelper {
} else if (type == TARGETS) { } else if (type == TARGETS) {
IconsCache iconsCache = app.getIconsCache(); IconsCache iconsCache = app.getIconsCache();
if (((TargetPoint) point).start) { if (((TargetPoint) point).start) {
ApplicationMode appMode = app.getSettings().getApplicationMode();
if (app.getTargetPointsHelper().getPointToStart() == null) { if (app.getTargetPointsHelper().getPointToStart() == null) {
ApplicationMode appMode = app.getSettings().getApplicationMode();
return uiCtx.getResources().getDrawable(appMode.getResourceLocationDay()); return uiCtx.getResources().getDrawable(appMode.getResourceLocationDay());
} else { } else {
return iconsCache.getContentIcon(R.drawable.ic_action_marker_dark, !nightMode); return iconsCache.getContentIcon(R.drawable.ic_action_marker_dark, !nightMode);

View file

@ -291,8 +291,8 @@ public class MapRouteInfoMenu implements IRouteInformationListener {
}); });
ImageView fromIcon = (ImageView) parentView.findViewById(R.id.fromIcon); ImageView fromIcon = (ImageView) parentView.findViewById(R.id.fromIcon);
ApplicationMode appMode = mapActivity.getMyApplication().getSettings().getApplicationMode();
if (targets.getPointToStart() == null) { if (targets.getPointToStart() == null) {
ApplicationMode appMode = mapActivity.getMyApplication().getSettings().getApplicationMode();
fromIcon.setImageDrawable(mapActivity.getResources().getDrawable(appMode.getResourceLocationDay())); fromIcon.setImageDrawable(mapActivity.getResources().getDrawable(appMode.getResourceLocationDay()));
} else { } else {
fromIcon.setImageDrawable(mapActivity.getMyApplication().getIconsCache().getContentIcon(R.drawable.ic_action_marker_dark, isLight())); fromIcon.setImageDrawable(mapActivity.getMyApplication().getIconsCache().getContentIcon(R.drawable.ic_action_marker_dark, isLight()));