I have night theme with black navigation bar, styled in App Theme param
<item name="android:navigationBarColor">@color/color_navbar</item>
<item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">false</item>
but when I show DialogFragment then navigation bar color changed to white. It hits eyes hard at night.
I tryed to set dialogfragment style but its not help me:
public void onCreate(Bundle savedInstanceState) {
setStyle(DialogFragment.STYLE_NO_TITLE, R.style.Theme_AppCompat_DayNight_Dialog);
super.onCreate(savedInstanceState);
}
My base app style is Theme.MaterialComponents.DayNight.NoActionBar
I test it on android Q.
So what the way to customize navbar color on dialog fragment? Or better if there is a way to no change navbar color when dialogfragment showed and use color from activity which from showed this dialog.


