Fixed
Status Update
Comments
sn...@google.com <sn...@google.com> #2
I guess hidden should just be defined. Meaning, right now, hidden should just defined as "whether this fragment was hidden as part of a transaction". Hidden is not equivalent with visibility. I think that's where the confusion comes from.
sn...@google.com <sn...@google.com> #3
We have passed this to the development team and will update this issue with more information as it becomes available.
mm...@commonsware.com <mm...@commonsware.com> #4
Yeah, I'm seeing this issue as well, currently this is the workaround that I've come up with:
// This method is called when hide()/show() methods are called on the transaction. Unfortunately Android doesn't
// propagate it to the child fragments (even though their visibility is affected by the parent visibility), so we
// do it manually.
override fun onHiddenChanged(hidden: Boolean) {
super.onHiddenChanged(hidden)
childFragmentManager.fragments.forEach { it.onHiddenChanged(hidden) }
}
// This method is called when hide()/show() methods are called on the transaction. Unfortunately Android doesn't
// propagate it to the child fragments (even though their visibility is affected by the parent visibility), so we
// do it manually.
override fun onHiddenChanged(hidden: Boolean) {
super.onHiddenChanged(hidden)
childFragmentManager.fragments.forEach { it.onHiddenChanged(hidden) }
}
Description
Android Studio 2.2 Beta
Build #AI-145.3128856, built on August 8, 2016
JRE: 1.8.0_76-release-b03 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
OS: Windows 10
Version of Espresso: 2.2.2
Android version on the recording device/emulator: Nexus_5_API_22
Android version on the replaying device/emulator: Nexus_5_API_22
Steps to Reproduce:
1. Start emulator
2. Rotate to landscape
3. Run > Record Espresso Test
4. Add assertion
Actual:
Screen capture for adding assertion is displayed in portret when hierarchy viewer (red area marked with mouse) is still in landscape
Expected
Screen capture for assertion is displayed in landscape