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

Commit 0b68477f authored by Romain Guy's avatar Romain Guy
Browse files

Don't scale bitmaps to an empty size when targetDpi=0

Bug #7334217

Change-Id: I8d232a835580ffbf85334e0a3580e8d8240c8570
parent c37f349e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -967,7 +967,7 @@ public final class Bitmap implements Parcelable {
     * @hide
     */
    static public int scaleFromDensity(int size, int sdensity, int tdensity) {
        if (sdensity == DENSITY_NONE || sdensity == tdensity) {
        if (sdensity == DENSITY_NONE || tdensity == DENSITY_NONE || sdensity == tdensity) {
            return size;
        }