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

Skip to content
Commit 49e5fb48 authored by Beth Thibodeau's avatar Beth Thibodeau
Browse files

Restrict image size when loading via URI

If images are larger than the maximum, sets a target size in ImageDecoder.
Also moved the scaling logic shared with MediaControlPanel to a util method

Fixes: 261849187
Test: atest MediaDataUtilsTest MediaControlPanelTest
Test: manual - check hprof before/after change
Test: manual - verify both square and rectangular images are not distorted
Change-Id: I997adb11e5c9278bcb54e5f6d6d68c6c1845c709
parent 844c5aec
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