Use parens to clarify intent & functionality of a condition

Precedence rules are for chumps.

Change-Id: I5e46899b3d2e2af32b627e8cd61f085ad28ef2a2
This commit is contained in:
YuviPanda 2013-09-19 17:41:53 -07:00
parent 16913eed4e
commit 119c973a06

View file

@ -182,7 +182,7 @@ public class MediaWikiImageView extends ImageView {
if (response.getBitmap() != null) { if (response.getBitmap() != null) {
setImageBitmap(response.getBitmap()); setImageBitmap(response.getBitmap());
if(tryOriginal && mMedia instanceof Contribution && response.getBitmap().getWidth() > mMedia.getWidth() || response.getBitmap().getHeight() > mMedia.getHeight()) { if(tryOriginal && mMedia instanceof Contribution && (response.getBitmap().getWidth() > mMedia.getWidth() || response.getBitmap().getHeight() > mMedia.getHeight())) {
// If there is no width information for this image, save it. This speeds up image loading massively for smaller images // If there is no width information for this image, save it. This speeds up image loading massively for smaller images
mMedia.setHeight(response.getBitmap().getHeight()); mMedia.setHeight(response.getBitmap().getHeight());
mMedia.setWidth(response.getBitmap().getWidth()); mMedia.setWidth(response.getBitmap().getWidth());