Fix nightMode for add point dialog
This commit is contained in:
parent
c87bd1f60a
commit
7b86c16cf8
3 changed files with 2 additions and 2 deletions
|
@ -1620,6 +1620,7 @@ public class ShowRouteInfoDialogFragment extends BaseOsmAndFragment {
|
||||||
icon.setImageDrawable(drawable);
|
icon.setImageDrawable(drawable);
|
||||||
|
|
||||||
label.setText(model.getDescriptionRoutePart());
|
label.setText(model.getDescriptionRoutePart());
|
||||||
|
AndroidUtils.setTextPrimaryColor(app, label, nightMode);
|
||||||
if (model.distance > 0) {
|
if (model.distance > 0) {
|
||||||
distanceLabel.setText(OsmAndFormatter.getFormattedDistance(model.distance, app));
|
distanceLabel.setText(OsmAndFormatter.getFormattedDistance(model.distance, app));
|
||||||
timeLabel.setText(getTimeDescription(model));
|
timeLabel.setText(getTimeDescription(model));
|
||||||
|
|
|
@ -1357,7 +1357,6 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
|
||||||
args.putString(AddPointBottomSheetDialog.POINT_TYPE_KEY, pointType.name());
|
args.putString(AddPointBottomSheetDialog.POINT_TYPE_KEY, pointType.name());
|
||||||
AddPointBottomSheetDialog fragment = new AddPointBottomSheetDialog();
|
AddPointBottomSheetDialog fragment = new AddPointBottomSheetDialog();
|
||||||
fragment.setArguments(args);
|
fragment.setArguments(args);
|
||||||
fragment.setUsedOnMap(false);
|
|
||||||
fragment.show(mapActivity.getSupportFragmentManager(), AddPointBottomSheetDialog.TAG);
|
fragment.show(mapActivity.getSupportFragmentManager(), AddPointBottomSheetDialog.TAG);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,7 @@ public class RouteStatisticCard extends BaseCard {
|
||||||
|
|
||||||
private void buildHeader(GPXUtilities.GPXTrackAnalysis analysis) {
|
private void buildHeader(GPXUtilities.GPXTrackAnalysis analysis) {
|
||||||
final LineChart mChart = (LineChart) view.findViewById(R.id.chart);
|
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);
|
mChart.setOnTouchListener(onTouchListener);
|
||||||
|
|
||||||
if (analysis.hasElevationData) {
|
if (analysis.hasElevationData) {
|
||||||
|
|
Loading…
Reference in a new issue