Open GPryan opened 6 years ago
I'll note, we got around this by using Theme.Holo.Light.Dialog.NoActionBar
instead of requestWindowFeature(Window.FEATURE_NO_TITLE)
, so this is no longer an issue for us. Still could be good to fix though :)
We have a similar problem with Hyperion and android.util.AndroidRuntimeException: requestFeature() must be called before adding content
.
In our case we have a third party library creating a fullscreen activity upon receiving a broadcast (for marketing purposes). When this broadcast is received the third party library attempts to spawn a full screen activity but instead we see this crash.
As others have commented this is only an issue in builds that have Hyperion installed or the no-op version active. However, what's odd here is that we notice this crash on Android versions 5 and below.
It differs slightly from @GPryan 's issue in that we aren't setting requestWindowFeature(Window.FEATURE_NO_TITLE)
(that's happening via the 3rd party library) but otherwise it appears the same.
We have an activity with the following
onCreate()
implementation:and the following manifest declaration:
However, when including
debugImplementation 'com.willowtreeapps.hyperion:hyperion-core:0.9.24'
, we get the following crash upon the activity starting.Any help or fix would be great. Keep up the great work. Thanks!