Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6be7dbbb authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz
Browse files

[Notification Content Cut Off] use max child height in ConversationLayout

FrameLayout measures its match_parent children twice when any of FLs dimension is unspecified.
It also sets its dimension before the match parent childrens second measurement.
Since View#measure is not immutable, children can have a different dimensions.
When the biggest children has bigger height than its first measurement, its content is going to be cut off.
We calculate the maxHeight in this CL and set it to fix cut off issue.

Bug: 324537506
Flag: android.widget.flags.conversation_layout_use_maximum_child_height
Test: Manual. Disable child invalidation and optimize linearlayout. Post a group notification with short choices and trigger onMeasure twice by orientation change. There shouldn't be any cut off.
Change-Id: I02be31dea83a217247c2e0dff05ceaa88efb2dee
parent 102f1f0c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment