Bug Report

Please resize these images (https://github.com/blokadaorg/fem/blob/master/android/app/src/main/res/drawable/feature_phishingarmy.png and https://github.com/blokadaorg/fem/blob/master/android/app/src/main/res/drawable/feature_energized.png) as they are too large for some high display resolutions. This results in crashing when pressing on the Blocklists menu.

Seeing “Android Canvas: drawing too large bitmap” for help

1 Like

Thanks. You mean too large for low display resolutions?

“The reason is that the drawable/ folder exists from early versions of android and is equivalent to drawable-mdpi . When an image that is only in drawable/ folder is used on xxhdpi device, the potentially already big image is upscaled by a factor of 3, which can then in some cases cause the image’s memory footprint to explode.” Source: https://stackoverflow.com/questions/40835514/android-canvas-drawing-too-large-bitmap

I only encountered the problem on high display resolutions so far.

1 Like