forked from upstream-mirrors/quik
Merge pull request #429 from DevFactory/release/useless-parentheses-around-expressions-should-be-removed-fix-3
squid:UselessParenthesesCheck - Useless parentheses around expressions should be removed to prevent any misunderstanding
This commit is contained in:
@@ -87,11 +87,11 @@ public class PduLoaderManager extends BackgroundLoaderManager {
|
|||||||
final SlideshowModel slideshow = (requestSlideshow && !DEBUG_DISABLE_CACHE) ?
|
final SlideshowModel slideshow = (requestSlideshow && !DEBUG_DISABLE_CACHE) ?
|
||||||
mSlideshowCache.get(uri) : null;
|
mSlideshowCache.get(uri) : null;
|
||||||
|
|
||||||
final boolean slideshowExists = (!requestSlideshow || slideshow != null);
|
final boolean slideshowExists = !requestSlideshow || slideshow != null;
|
||||||
final boolean pduExists = (cacheEntry != null && cacheEntry.getPdu() != null);
|
final boolean pduExists = cacheEntry != null && cacheEntry.getPdu() != null;
|
||||||
final boolean taskExists = mPendingTaskUris.contains(uri);
|
final boolean taskExists = mPendingTaskUris.contains(uri);
|
||||||
final boolean newTaskRequired = (!pduExists || !slideshowExists) && !taskExists;
|
final boolean newTaskRequired = (!pduExists || !slideshowExists) && !taskExists;
|
||||||
final boolean callbackRequired = (callback != null);
|
final boolean callbackRequired = callback != null;
|
||||||
|
|
||||||
if (pduExists && slideshowExists) {
|
if (pduExists && slideshowExists) {
|
||||||
if (callbackRequired) {
|
if (callbackRequired) {
|
||||||
|
|||||||
@@ -122,10 +122,10 @@ public class ThumbnailManager extends BackgroundLoaderManager {
|
|||||||
|
|
||||||
final Bitmap thumbnail = DEBUG_DISABLE_CACHE ? null : mThumbnailCache.get(uri);
|
final Bitmap thumbnail = DEBUG_DISABLE_CACHE ? null : mThumbnailCache.get(uri);
|
||||||
|
|
||||||
final boolean thumbnailExists = (thumbnail != null);
|
final boolean thumbnailExists = thumbnail != null;
|
||||||
final boolean taskExists = mPendingTaskUris.contains(uri);
|
final boolean taskExists = mPendingTaskUris.contains(uri);
|
||||||
final boolean newTaskRequired = !thumbnailExists && !taskExists;
|
final boolean newTaskRequired = !thumbnailExists && !taskExists;
|
||||||
final boolean callbackRequired = (callback != null);
|
final boolean callbackRequired = callback != null;
|
||||||
|
|
||||||
if (Log.isLoggable(LogTag.THUMBNAIL_CACHE, Log.DEBUG)) {
|
if (Log.isLoggable(LogTag.THUMBNAIL_CACHE, Log.DEBUG)) {
|
||||||
Log.v(TAG, "getThumbnail mThumbnailCache.get for uri: " + uri + " thumbnail: " +
|
Log.v(TAG, "getThumbnail mThumbnailCache.get for uri: " + uri + " thumbnail: " +
|
||||||
|
|||||||
Reference in New Issue
Block a user