From 4b9a1cfa3a7223928c4608540fcb0fff08efe1ab Mon Sep 17 00:00:00 2001 From: Bars107 Date: Tue, 13 Jan 2015 18:15:41 +0200 Subject: [PATCH] updates to statusbar color --- .../osmand/plus/dashboard/DashAudioVideoNotesActivity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashAudioVideoNotesActivity.java b/OsmAnd/src/net/osmand/plus/dashboard/DashAudioVideoNotesActivity.java index c98abfae6b..4591ec6630 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashAudioVideoNotesActivity.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashAudioVideoNotesActivity.java @@ -35,7 +35,10 @@ public class DashAudioVideoNotesActivity extends ActionBarActivity { plugin = OsmandPlugin.getEnabledPlugin(AudioVideoNotesPlugin.class); int c = getResources().getColor(R.color.actionbar_color); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){ - getWindow().setStatusBarColor(c); + Window window = getWindow(); + window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); + window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); + window.setStatusBarColor(c); } ColorDrawable color = new ColorDrawable(c); ActionBar actionBar = getSupportActionBar();