Assigned
Status Update
Comments
ju...@linecorp.com <ju...@linecorp.com> #2
class FixDrawerLayout @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
) : DrawerLayout(context, attrs) {
fun registerToFragmentLifecycle(fragment: Fragment) {
fragment.viewLifecycleOwner.launchOnLifecycleDestroy {
super.onDetachedFromWindow()
}
}
}
Description
Component used: SlidingPaneLayout
Version used: 1.2.0
Devices/Android versions reproduced on: Galaxy Z Fold 4 (Android 13)
This issue is founded when users start to fold their's foldable devices. As soon as the device folds,
FoldingFeatureObserver
inSlidingPaneLayout
receives a changedfoldingFeature
and callsrequestLayout()
. Then, the width of some views is changed automatically.