mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
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) ?
|
||||
mSlideshowCache.get(uri) : null;
|
||||
|
||||
final boolean slideshowExists = (!requestSlideshow || slideshow != null);
|
||||
final boolean pduExists = (cacheEntry != null && cacheEntry.getPdu() != null);
|
||||
final boolean slideshowExists = !requestSlideshow || slideshow != null;
|
||||
final boolean pduExists = cacheEntry != null && cacheEntry.getPdu() != null;
|
||||
final boolean taskExists = mPendingTaskUris.contains(uri);
|
||||
final boolean newTaskRequired = (!pduExists || !slideshowExists) && !taskExists;
|
||||
final boolean callbackRequired = (callback != null);
|
||||
final boolean callbackRequired = callback != null;
|
||||
|
||||
if (pduExists && slideshowExists) {
|
||||
if (callbackRequired) {
|
||||
|
||||
@@ -122,10 +122,10 @@ public class ThumbnailManager extends BackgroundLoaderManager {
|
||||
|
||||
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 newTaskRequired = !thumbnailExists && !taskExists;
|
||||
final boolean callbackRequired = (callback != null);
|
||||
final boolean callbackRequired = callback != null;
|
||||
|
||||
if (Log.isLoggable(LogTag.THUMBNAIL_CACHE, Log.DEBUG)) {
|
||||
Log.v(TAG, "getThumbnail mThumbnailCache.get for uri: " + uri + " thumbnail: " +
|
||||
|
||||
Reference in New Issue
Block a user