mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Use parens to clarify intent & functionality of a condition
Precedence rules are for chumps. Change-Id: I5e46899b3d2e2af32b627e8cd61f085ad28ef2a2
This commit is contained in:
parent
16913eed4e
commit
119c973a06
1 changed files with 1 additions and 1 deletions
|
|
@ -182,7 +182,7 @@ public class MediaWikiImageView extends ImageView {
|
|||
|
||||
if (response.getBitmap() != null) {
|
||||
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
|
||||
mMedia.setHeight(response.getBitmap().getHeight());
|
||||
mMedia.setWidth(response.getBitmap().getWidth());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue