correct icon for starting point

This commit is contained in:
sonora 2016-01-10 18:39:58 +01:00
parent 88bc33a34d
commit 15fea0eebf

View file

@ -683,7 +683,12 @@ public class WaypointHelper {
IconsCache iconsCache = app.getIconsCache();
if (((TargetPoint) point).start) {
ApplicationMode appMode = app.getSettings().getApplicationMode();
return uiCtx.getResources().getDrawable(appMode.getResourceLocationDay());
//return uiCtx.getResources().getDrawable(appMode.getResourceLocationDay());
if (app.getTargetPointsHelper().getTargets().getPointToStart() == null) {
return uiCtx.getResources().getDrawable(appMode.getResourceLocationDay());
} else {
return iconsCache.getContentIcon(R.drawable.ic_action_marker_dark, !nightMode);
}
} else if (((TargetPoint) point).intermediate) {
if (!nightMode) {
return iconsCache.getIcon(R.drawable.widget_intermediate_day, 0, 0f);