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

Commit fa6e9cf6 authored by Romain Guy's avatar Romain Guy Committed by Android Git Automerger
Browse files

am 86ad8662: Merge "Don\'t scale bitmaps to an empty size when targetDpi=0 Bug...

am 86ad8662: Merge "Don\'t scale bitmaps to an empty size when targetDpi=0 Bug #7334217" into jb-mr1-dev

* commit '86ad8662':
  Don't scale bitmaps to an empty size when targetDpi=0 Bug #7334217
parents 207b5e17 86ad8662
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;
        }