Skip to content

Commit 8d17042

Browse files
Romain Guyandroid code review
authored andcommitted
Merge "Fix wrong condition."
2 parents 13a3a87 + 8108e9f commit 8d17042

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)