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

* commit 'fa6e9cf65adf7d27714275510967a0eda0695cd4':
  Don't scale bitmaps to an empty size when targetDpi=0 Bug #7334217
This commit is contained in:
Romain Guy
2012-10-11 17:13:45 -07:00
committed by Android Git Automerger

View File

@@ -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;
}