Skip to content

Commit 4094fb3

Browse files
Romain GuyAndroid Git Automerger
authored andcommitted
am 8d17042: Merge "Fix wrong condition."
* commit '8d1704215e80ebec61f6d77c503d83b32d881096': Fix wrong condition.
2 parents d304e8b + 8d17042 commit 4094fb3

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)