From 546c6c18a8131e8c5908b2f7149defe7c511d079 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Fri, 22 Sep 2017 15:17:43 +0300 Subject: [PATCH] Capitalize first letter in month --- .../plus/mapmarkers/adapters/MapMarkersActiveAdapter.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/adapters/MapMarkersActiveAdapter.java b/OsmAnd/src/net/osmand/plus/mapmarkers/adapters/MapMarkersActiveAdapter.java index e5c80fb7c8..49f697c609 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/adapters/MapMarkersActiveAdapter.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/adapters/MapMarkersActiveAdapter.java @@ -151,7 +151,13 @@ public class MapMarkersActiveAdapter extends RecyclerView.Adapter 1) { + month = Character.toUpperCase(month.charAt(0)) + month.substring(1); + } + String day = new SimpleDateFormat("dd", Locale.getDefault()).format(date); + descr = month + " " + day; } holder.description.setText(descr);