save btn font
This commit is contained in:
parent
a726955291
commit
e27dc91a3b
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,7 @@ import net.osmand.plus.R;
|
||||||
import net.osmand.plus.SQLiteTileSource;
|
import net.osmand.plus.SQLiteTileSource;
|
||||||
import net.osmand.plus.UiUtilities;
|
import net.osmand.plus.UiUtilities;
|
||||||
import net.osmand.plus.base.BaseOsmAndDialogFragment;
|
import net.osmand.plus.base.BaseOsmAndDialogFragment;
|
||||||
|
import net.osmand.plus.helpers.FontCache;
|
||||||
import net.osmand.plus.mapsource.InputZoomLevelsBottomSheet.OnZoomSetListener;
|
import net.osmand.plus.mapsource.InputZoomLevelsBottomSheet.OnZoomSetListener;
|
||||||
import net.osmand.plus.mapsource.ExpireTimeBottomSheet.OnExpireValueSetListener;
|
import net.osmand.plus.mapsource.ExpireTimeBottomSheet.OnExpireValueSetListener;
|
||||||
import net.osmand.plus.mapsource.MercatorProjectionBottomSheet.OnMercatorSelectedListener;
|
import net.osmand.plus.mapsource.MercatorProjectionBottomSheet.OnMercatorSelectedListener;
|
||||||
|
@ -179,6 +180,7 @@ public class EditMapSourceDialogFragment extends BaseOsmAndDialogFragment
|
||||||
FrameLayout saveBtnBg = root.findViewById(R.id.save_button_bg);
|
FrameLayout saveBtnBg = root.findViewById(R.id.save_button_bg);
|
||||||
saveBtnBg.setBackgroundColor(ContextCompat.getColor(app, btnBgColorRes));
|
saveBtnBg.setBackgroundColor(ContextCompat.getColor(app, btnBgColorRes));
|
||||||
saveBtnTitle = root.findViewById(R.id.save_button_title);
|
saveBtnTitle = root.findViewById(R.id.save_button_title);
|
||||||
|
saveBtnTitle.setTypeface(FontCache.getRobotoMedium(requireContext()));
|
||||||
saveBtnTitle.setTextColor(ContextCompat.getColorStateList(app,
|
saveBtnTitle.setTextColor(ContextCompat.getColorStateList(app,
|
||||||
nightMode ? R.color.dlg_btn_primary_text_dark : R.color.dlg_btn_primary_text_light));
|
nightMode ? R.color.dlg_btn_primary_text_dark : R.color.dlg_btn_primary_text_light));
|
||||||
saveBtn.setOnClickListener(new View.OnClickListener() {
|
saveBtn.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
Loading…
Reference in a new issue