If I enable the translucent navigation bar with

```
getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);

getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);

```

Then the toolbar is behind the statusbar (the statusbar is supposed to be colored but the navbar is supposed to be translucent). However, if I go to the layout XML for this Activity, and put in `android:fitsSystemWindows="true"`, the toolbar is correctly laid out, but the navbar is then a solid color.

Here is the layout:

```
<?xml version="1.0" encoding="utf-8"?>
<me.ccrama.redditslide.Views.SidebarLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true"
    android:background="?attr/activity_background">

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <View
            android:id="@+id/anchor"
            android:layout_width="1dp"
            android:layout_marginTop="4dp"
            android:layout_marginRight="3dp"

            android:layout_gravity="top|right"
            android:layout_height="1dp" />

        <me.ccrama.redditslide.Views.ToggleSwipeViewPager
            android:id="@+id/content_view"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />

        <android.support.design.widget.AppBarLayout
            android:id="@+id/header"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <android.support.v7.widget.Toolbar
                android:id="@+id/toolbar"
                android:layout_width="match_parent"
                android:minHeight="56dp"
                android:layout_height="?android:attr/actionBarSize"
                android:theme="@style/ActionBarCompat"
                android:title="@string/app_name" />

            <ViewStub
                android:id="@+id/stub_tabs"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:inflatedId="@+id/sliding_tabs"
                android:layout="@layout/activity_overview_tabs" />

        </android.support.design.widget.AppBarLayout>

    </FrameLayout>

    <ListView
        android:id="@+id/drawerlistview"
        android:layout_width="300dp"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        android:background="?attr/card_background"
        android:orientation="vertical" />

    <include
        layout="@layout/subinfo"
        android:layout_width="300dp"
        android:layout_height="match_parent"
        android:layout_gravity="end" />

</me.ccrama.redditslide.Views.SidebarLayout>

```

The same behavior (colored navbar) happens if I put the `android:fitsSystemWindows="true"` inside the `FrameLayout` instead.

The first image below is when the toolbar layout is messed up, and the second phone is when the navbar isn't translucent.

[![enter image description here](https://i.stack.imgur.com/LAaXw.png)](https://i.stack.imgur.com/LAaXw.png)

[![enter image description here](https://i.stack.imgur.com/1hglJ.png)](https://i.stack.imgur.com/1hglJ.png)