:test_tube: When testing screen orientation change, am getting ```java.lang.IllegalStateException: N...
t
๐Ÿงช When testing screen orientation change, am getting
Copy code
java.lang.IllegalStateException: No compose views found in the app. Is your Activity resumed?
โžก๏ธ More details in the SO thread
@Zach Klippenstein (he/him) [MOD] any idea? ๐Ÿค”
cc @ppvi
p
Orientation change is not something officially supported yet (sadly) so I'm not surprised. Can you file a bug and post the link here? Cc @Jelle Fresen [G]
t
@ppvi ๐Ÿ†—. Will create a new issue.
p
oh you're creating a pure compose test with a composable that is very tightly coupled with the framework
I'd be very surprised if that worked ๐Ÿ™‚ let's see what Jelle says
๐Ÿ‘ 1
can you try createAndroidComposeTestRule() instead and call onActivity after and before the config change? Not sure if it can work with multiple activities though.
t
I tried that. but I got some other error. I donโ€™t recall the exact reason. It was something related to calling composable functions inside the
onActivity
lambda I guess. Do you want the exact stacktrace?
p
no need thanks
โœ”๏ธ 1