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

Skip to content
Commit 9641493d authored by Roy Chou's avatar Roy Chou
Browse files

fix(statusbar): notification icons become too small when smaller font size

In StatusBarIconView, when calculating the icon scale for notification icons, we should first compute the scale to make the raw drawable same size when icon view size is mOriginalStatusBarIconSize. Therefore, when smaller font size already makes the drawable constrained further than mOriginalStatusBarIconSize does, we should compute the scale to enlarge the constrained image to the size it would be when mOriginalStatusBarIconSize. Then, we could do the next steps to scale the scaled image to fit mNewStatusBarIconSize.

Bug: 296026932
Test: manually - attach screenshots in bug
      atest systemui/statusbar/phone/
Change-Id: Id8aa77ebac631377cc2ed623d8c4dedad59c27de
parent b650f99c
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