diff --git a/OsmAnd/res/values/colors.xml b/OsmAnd/res/values/colors.xml
index bbe6462af1..8cb81c7588 100644
--- a/OsmAnd/res/values/colors.xml
+++ b/OsmAnd/res/values/colors.xml
@@ -134,6 +134,7 @@
#2f3a40
#33000000
#99000000
+ #CC000000
#11ab51
#d9d9d9
diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java b/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java
index f34bcde4ab..8ea1431acb 100644
--- a/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java
+++ b/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java
@@ -866,6 +866,9 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks, DynamicLis
updateLocation(true, true, false);
// addOrUpdateDashboardFragments();
mapActivity.getRoutingHelper().addListener(this);
+ if (Build.VERSION.SDK_INT >= 21) {
+ mapActivity.getWindow().setStatusBarColor(ContextCompat.getColor(mapActivity, R.color.status_bar_transparent_gradient));
+ }
} else {
mapActivity.getMapViewTrackingUtilities().setDashboard(null);
hide(dashboardView.findViewById(R.id.animateContent), animation);
@@ -890,6 +893,9 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks, DynamicLis
fragment.show(mapActivity.getSupportFragmentManager(), MapillaryFirstDialogFragment.TAG);
settings.MAPILLARY_FIRST_DIALOG_SHOWN.set(true);
}
+ if (Build.VERSION.SDK_INT >= 21) {
+ mapActivity.updateStatusBarColor();
+ }
}
}
diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/PlanRouteFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/PlanRouteFragment.java
index 8729a94fd2..009fa74a37 100644
--- a/OsmAnd/src/net/osmand/plus/mapmarkers/PlanRouteFragment.java
+++ b/OsmAnd/src/net/osmand/plus/mapmarkers/PlanRouteFragment.java
@@ -392,7 +392,7 @@ public class PlanRouteFragment extends ColoredStatusBarFragment implements OsmAn
if (fullScreen) {
return nightMode ? R.color.status_bar_dark : R.color.status_bar_route_light;
}
- return -1;
+ return R.color.status_bar_transparent_gradient;
}
@Override