Fixed
Status Update
Comments
jb...@google.com <jb...@google.com> #2
Please upload a minimal sample project that reproduces this issue.
ta...@mercury.com <ta...@mercury.com> #4
Also seeing this when updating from Fragment 1.5.0-alpha03 to Fragment 1.5.0-alpha04. Downgrading to 1.5.0-alpha03 prevents the crash.
il...@google.com <il...@google.com> #5
The behavior at the Fragment level is correct: no changes are planned at the Fragment level.
The crash is caused by AppCompat intercepting invalidateOptionsMenu
and doing too much work too soon - that ensureSubDecor
path shouldn't be called at all as part of super.onCreate()
.
We've fixed AppCompat as part of
Description
Component used: Fragment
Version used: 1.5.0-alpa04
Devices/Android versions reproduced on: API 23 until API 31
When the app is using the new
Theme.SplashScreen
from the AndroidX Splashscreen component then the app crashes on startup:The relevant lines in MainActivity.kt: