Skip to content

Commit 8108e9f

Browse files
committed
Fix wrong condition.
Should check width and height, not width and width. Change-Id: Ie84d3605b2a7a0f4776adb876608ea92f56817c4
1 parent 13a3a87 commit 8108e9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

policy/src/com/android/internal/policy/impl/IconUtilities.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ private Bitmap createIconBitmap(Drawable icon) {
130130
int sourceWidth = icon.getIntrinsicWidth();
131131
int sourceHeight = icon.getIntrinsicHeight();
132132

133-
if (sourceWidth > 0 && sourceWidth > 0) {
133+
if (sourceWidth > 0 && sourceHeight > 0) {
134134
// There are intrinsic sizes.
135135
if (width < sourceWidth || height < sourceHeight) {
136136
// It's too big, scale it down.

0 commit comments

Comments
 (0)