Skip to content

Commit 3f7f195

Browse files
committed
Switch conditional to OR.
1 parent 8b9b5e3 commit 3f7f195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

picasso/src/main/java/com/squareup/picasso/RequestCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ public void into(ImageView target, Callback callback) {
345345
}
346346
int measuredWidth = target.getMeasuredWidth();
347347
int measuredHeight = target.getMeasuredHeight();
348-
if (measuredWidth == 0 && measuredHeight == 0) {
348+
if (measuredWidth == 0 || measuredHeight == 0) {
349349
PicassoDrawable.setPlaceholder(target, placeholderResId, placeholderDrawable);
350350
picasso.defer(target, new DeferredRequestCreator(this, target, callback));
351351
return;

0 commit comments

Comments
 (0)