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
Loading
Please register or sign in to comment