@@ -133,18 +133,22 @@ class Screen(
133133 ) {
134134 val height = bottom - top
135135
136+ Log .i(" HT" , " Screen [$id ] onContentWrapperLayout - $height " )
137+
136138 if (usesFormSheetPresentation()) {
137139 if (isSheetFitToContents()) {
138140 sheetBehavior?.useSingleDetent(height)
139141 }
140142
141143 if (! BuildConfig .IS_NEW_ARCHITECTURE_ENABLED ) {
142144 // On old architecture we delay enter transition in order to wait for initial frame.
145+ Log .i(" HT" , " Screen [$id ] onContentWrapperLayout - request transition trigger" )
143146 shouldTriggerPostponedTransitionAfterLayout = true
144147 val parent = parentAsViewGroup()
145148 if (parent != null && ! parent.isInLayout) {
146149 // There are reported cases (irreproducible) when Screen is not laid out after
147150 // maxHeight is set on behaviour.
151+ Log .i(" HT" , " Screen [$id ] onContentWrapperLayout - request parent layout" )
148152 parent.requestLayout()
149153 }
150154 }
@@ -172,6 +176,7 @@ class Screen(
172176 r : Int ,
173177 b : Int ,
174178 ) {
179+ Log .i(" HT" , " Screen [$id ] received layout ${b - t} " )
175180 // In case of form sheet we get layout notification a bit later, in `onBottomSheetBehaviorDidLayout`
176181 // after the attached behaviour laid out this view.
177182 if (changed && isNativeStackScreen && ! usesFormSheetPresentation()) {
@@ -194,6 +199,7 @@ class Screen(
194199 }
195200
196201 footer?.onParentLayout(coordinatorLayoutDidChange, left, top, right, bottom, container!! .height)
202+ Log .i(" HT" , " Screen [$id ] behavior layout" )
197203
198204 if (! BuildConfig .IS_NEW_ARCHITECTURE_ENABLED ) {
199205 // When using form sheet presentation we want to delay enter transition **on Paper** in order
@@ -207,6 +213,7 @@ class Screen(
207213 if (shouldTriggerPostponedTransitionAfterLayout) {
208214 shouldTriggerPostponedTransitionAfterLayout = false
209215 // This will trigger enter transition only if one was requested by ScreenStack
216+ Log .i(" HT" , " Screen [$id ] triggering postponed transition" )
210217 fragment?.startPostponedEnterTransition()
211218 }
212219 }
0 commit comments