For some reason, using android:background instead of app:srcCompat in the ImageView in the NavigationView header makes an AdaptiveIconView, that's being used internally somewhere, freak out and throw an IllegalArgumentException. Don't exactly know why, but this fixes the crash on opening the navigation drawer on devices running API >=26.
It was working in Pie and LP. I should have tried with lower apis before the release, but thanks for the PR.
I forget to change this one, it's because i'm using a VectorDrawable instead of a .PNG
For some reason, using
android:background
instead ofapp:srcCompat
in the ImageView in the NavigationView header makes an AdaptiveIconView, that's being used internally somewhere, freak out and throw an IllegalArgumentException. Don't exactly know why, but this fixes the crash on opening the navigation drawer on devices running API >=26.