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

* commit '86ad866283dc05c2adb8f673510e8b45b0b5ee5f':
  Don't scale bitmaps to an empty size when targetDpi=0 Bug #7334217
This commit is contained in:
Romain Guy
2012-10-11 15:52:58 -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;
}