fix Dark theme -> Route preparation -> Start button text and icon color during route calculating

This commit is contained in:
Nazar 2019-09-12 11:48:30 +03:00
parent 30097c2249
commit d6c1d76dca

View file

@ -966,10 +966,10 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
color2 = color1;
}
} else {
color1 = nightMode ? R.color.active_buttons_and_links_text_disabled_dark : R.color.active_buttons_and_links_text_light;
color1 = nightMode ? R.color.active_buttons_and_links_text_dark : R.color.active_buttons_and_links_text_light;
if (routeCalculated) {
AndroidUtils.setBackground(app, startButton, nightMode, R.color.active_color_primary_light, R.color.active_color_primary_dark);
color2 = nightMode ? R.color.active_buttons_and_links_text_dark : R.color.active_buttons_and_links_text_light;
color2 = color1;
} else {
AndroidUtils.setBackground(app, startButton, nightMode, R.color.activity_background_light, R.color.activity_background_dark);
color2 = R.color.description_font_and_bottom_sheet_icons;