updates to statusbar color
This commit is contained in:
parent
e950a17b27
commit
4b9a1cfa3a
1 changed files with 4 additions and 1 deletions
|
@ -35,7 +35,10 @@ public class DashAudioVideoNotesActivity extends ActionBarActivity {
|
||||||
plugin = OsmandPlugin.getEnabledPlugin(AudioVideoNotesPlugin.class);
|
plugin = OsmandPlugin.getEnabledPlugin(AudioVideoNotesPlugin.class);
|
||||||
int c = getResources().getColor(R.color.actionbar_color);
|
int c = getResources().getColor(R.color.actionbar_color);
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){
|
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);
|
ColorDrawable color = new ColorDrawable(c);
|
||||||
ActionBar actionBar = getSupportActionBar();
|
ActionBar actionBar = getSupportActionBar();
|
||||||
|
|
Loading…
Reference in a new issue