commit | 8108e9f8cd03b97a81dbae83ec7164dcb93b515a | [log] [tgz] |
---|---|---|
author | SeongJae Park <sj38.park@gmail.com> | Sat Jul 14 14:18:51 2012 +0900 |
committer | SeongJae Park <sj38.park@gmail.com> | Sat Jul 14 14:18:51 2012 +0900 |
tree | fa6504f02055ab3bda3539452e2a49efb1c8d520 | |
parent | 13a3a87fa7264df29a1f698ce80ada2de3561962 [diff] |
Fix wrong condition. Should check width and height, not width and width. Change-Id: Ie84d3605b2a7a0f4776adb876608ea92f56817c4
diff --git a/policy/src/com/android/internal/policy/impl/IconUtilities.java b/policy/src/com/android/internal/policy/impl/IconUtilities.java index e997355..a47c904 100644 --- a/policy/src/com/android/internal/policy/impl/IconUtilities.java +++ b/policy/src/com/android/internal/policy/impl/IconUtilities.java
@@ -130,7 +130,7 @@ int sourceWidth = icon.getIntrinsicWidth(); int sourceHeight = icon.getIntrinsicHeight(); - if (sourceWidth > 0 && sourceWidth > 0) { + if (sourceWidth > 0 && sourceHeight > 0) { // There are intrinsic sizes. if (width < sourceWidth || height < sourceHeight) { // It's too big, scale it down.