Nav drawer now moves behind the status bar and the colors also work correctly.

This commit is contained in:
Somethingweirdhere 2018-06-14 01:55:55 +02:00 committed by Christian Schabesberger
parent 409bebd5bc
commit d4101c4f43
5 changed files with 63 additions and 8 deletions

View file

@ -2,6 +2,7 @@ package org.schabi.newpipe.fragments;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
@ -93,6 +94,7 @@ public class MainFragment extends BaseFragment implements TabLayout.OnTabSelecte
prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
prefs.registerOnSharedPreferenceChangeListener(listener);
return inflater.inflate(R.layout.fragment_main, container, false);
}