Fix nightMode for add point dialog

This commit is contained in:
Chumva 2019-03-04 14:15:16 +02:00
parent c87bd1f60a
commit 7b86c16cf8
3 changed files with 2 additions and 2 deletions

View file

@ -1620,6 +1620,7 @@ public class ShowRouteInfoDialogFragment extends BaseOsmAndFragment {
icon.setImageDrawable(drawable);
label.setText(model.getDescriptionRoutePart());
AndroidUtils.setTextPrimaryColor(app, label, nightMode);
if (model.distance > 0) {
distanceLabel.setText(OsmAndFormatter.getFormattedDistance(model.distance, app));
timeLabel.setText(getTimeDescription(model));

View file

@ -1357,7 +1357,6 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
args.putString(AddPointBottomSheetDialog.POINT_TYPE_KEY, pointType.name());
AddPointBottomSheetDialog fragment = new AddPointBottomSheetDialog();
fragment.setArguments(args);
fragment.setUsedOnMap(false);
fragment.show(mapActivity.getSupportFragmentManager(), AddPointBottomSheetDialog.TAG);
}

View file

@ -129,7 +129,7 @@ public class RouteStatisticCard extends BaseCard {
private void buildHeader(GPXUtilities.GPXTrackAnalysis analysis) {
final LineChart mChart = (LineChart) view.findViewById(R.id.chart);
GpxUiHelper.setupGPXChart(app, mChart, 4);
GpxUiHelper.setupGPXChart(mChart, 4, 24f, 16f, !nightMode, true);
mChart.setOnTouchListener(onTouchListener);
if (analysis.hasElevationData) {