You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From testing w/ a small Compose test app where there's no App theme, this activity can crash with this error:
UnsupportedOperationException: Failed to resolve attribute at index 1: TypedValue{t=0x2/d=0x7f030003 a=-1}, theme={InheritanceMap=[id=0x103013fandroid:style/Theme.DeviceDefault.Light.DarkActionBar,
Fix is to add an app theme but probably should be documented.
Also, when launching a Hilt Fragment MockableMavericksView from MavericksLauncherMockActivity, this happens:
java.lang.IllegalStateException: Hilt Fragments must be attached to an @AndroidEntryPoint Activity. Found: class com.airbnb.mvrx.launcher.MavericksLauncherMockActivity
Wrapping the MavericksLauncherMockActivity like this had the same error:
@AndroidEntryPoint
class HiltMavericksLauncherMockActivity : MavericksLauncherActivity() {
companion object {
private inline fun <reified T> Context.buildIntent(initializer: Intent.() -> Unit = {}): Intent {
return Intent(this, T::class.java).apply(initializer)
}
fun show(context: Context) {
context.startActivity(context.buildIntent<HiltMavericksLauncherMockActivity>())
}
}
}
even when launching with "HiltMavericksLauncherMockActivity.show(this)"
The text was updated successfully, but these errors were encountered:
From testing w/ a small Compose test app where there's no App theme, this activity can crash with this error:
Fix is to add an app theme but probably should be documented.
Also, when launching a Hilt Fragment MockableMavericksView from MavericksLauncherMockActivity, this happens:
Wrapping the MavericksLauncherMockActivity like this had the same error:
even when launching with "HiltMavericksLauncherMockActivity.show(this)"
The text was updated successfully, but these errors were encountered: