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

Skip to content
Commit 34f2ac94 authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz
Browse files

Create NotificationOptimizedLinearLayout

This CL introduces a custom LinearLayout class that overrides the onMeasure method.
For a specific layout pattern (a LinearLayout, whose width is match_parent, with one weighted child), this custom class will strategically measure unweighted views first
 and then measure the weighted view with remaining space.
This allows it to calculate the correct layout dimensions in a single pass, avoiding the performance overhead of the double measurement

Bug: 316110233
Test: presubmit + silver test + screenshot test of Messaging Notifications
Flag: ACONFIG notif_linearlayout_optimized DEVELOPMENT
Change-Id: I012824cb9cb24c95e5d29d8a3a9f8dde359fef96
parent 74f4fa70
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