am 8d170421: Merge "Fix wrong condition."

* commit '8d1704215e80ebec61f6d77c503d83b32d881096':
  Fix wrong condition.
This commit is contained in:
Romain Guy
2012-07-16 01:55:55 -07:00
committed by Android Git Automerger

View File

@ -130,7 +130,7 @@ final class IconUtilities {
int sourceWidth = icon.getIntrinsicWidth(); int sourceWidth = icon.getIntrinsicWidth();
int sourceHeight = icon.getIntrinsicHeight(); int sourceHeight = icon.getIntrinsicHeight();
if (sourceWidth > 0 && sourceWidth > 0) { if (sourceWidth > 0 && sourceHeight > 0) {
// There are intrinsic sizes. // There are intrinsic sizes.
if (width < sourceWidth || height < sourceHeight) { if (width < sourceWidth || height < sourceHeight) {
// It's too big, scale it down. // It's too big, scale it down.