diff --git a/OsmAnd/res/layout/fragment_measurement_tool.xml b/OsmAnd/res/layout/fragment_measurement_tool.xml index 12ab48d201..50df9e1ee8 100644 --- a/OsmAnd/res/layout/fragment_measurement_tool.xml +++ b/OsmAnd/res/layout/fragment_measurement_tool.xml @@ -304,7 +304,7 @@ android:paddingLeft="@dimen/measurement_tool_button_padding" android:paddingRight="@dimen/measurement_tool_button_padding" android:text="@string/shared_string_apply" - android:textColor="?attr/color_dialog_buttons" + android:textColor="@color/color_white" android:textAllCaps="false" android:paddingEnd="@dimen/measurement_tool_button_padding" android:paddingStart="@dimen/measurement_tool_button_padding" /> diff --git a/OsmAnd/src/net/osmand/plus/measurementtool/RouteBetweenPointsBottomSheetDialogFragment.java b/OsmAnd/src/net/osmand/plus/measurementtool/RouteBetweenPointsBottomSheetDialogFragment.java index 8c43b02c0a..59b7936587 100644 --- a/OsmAnd/src/net/osmand/plus/measurementtool/RouteBetweenPointsBottomSheetDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/measurementtool/RouteBetweenPointsBottomSheetDialogFragment.java @@ -70,8 +70,9 @@ public class RouteBetweenPointsBottomSheetDialogFragment extends BottomSheetDial nightMode = app.getDaynightHelper().isNightModeForMapControls(); FragmentActivity activity = requireActivity(); portrait = AndroidUiHelper.isOrientationPortrait(activity); - final View mainView = inflater.inflate(R.layout.fragment_route_between_points_bottom_sheet_dialog, - container, false); + final View mainView = UiUtilities.getInflater(getContext(), nightMode) + .inflate(R.layout.fragment_route_between_points_bottom_sheet_dialog, + container, false); AndroidUtils.setBackground(activity, mainView, nightMode, portrait ? R.drawable.bg_bottom_menu_light : R.drawable.bg_bottom_sheet_topsides_landscape_light, portrait ? R.drawable.bg_bottom_menu_dark : R.drawable.bg_bottom_sheet_topsides_landscape_dark);