Skip to content

Commit 119c973

Browse files
committed
Use parens to clarify intent & functionality of a condition
Precedence rules are for chumps. Change-Id: I5e46899b3d2e2af32b627e8cd61f085ad28ef2a2
1 parent 16913ee commit 119c973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commons/src/main/java/org/wikimedia/commons/MediaWikiImageView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public void run() {
182182

183183
if (response.getBitmap() != null) {
184184
setImageBitmap(response.getBitmap());
185-
if(tryOriginal && mMedia instanceof Contribution && response.getBitmap().getWidth() > mMedia.getWidth() || response.getBitmap().getHeight() > mMedia.getHeight()) {
185+
if(tryOriginal && mMedia instanceof Contribution && (response.getBitmap().getWidth() > mMedia.getWidth() || response.getBitmap().getHeight() > mMedia.getHeight())) {
186186
// If there is no width information for this image, save it. This speeds up image loading massively for smaller images
187187
mMedia.setHeight(response.getBitmap().getHeight());
188188
mMedia.setWidth(response.getBitmap().getWidth());

0 commit comments

Comments
 (0)