AndyScherzinger преди 8 години
родител
ревизия
fbd703b1da
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java

+ 3 - 3
src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java

@@ -512,7 +512,7 @@ public class ThumbnailsCacheManager {
         }
 
         private Bitmap doVideoInBackground(File file) {
-            Bitmap bitmap = null;
+            Bitmap bitmap;
             final String imageKey;
 
             if (mImageKey != null) {
@@ -522,10 +522,10 @@ public class ThumbnailsCacheManager {
             }
 
             // Check disk cache in background thread
-            Bitmap thumbnail = getBitmapFromDiskCache(imageKey);
+            bitmap = getBitmapFromDiskCache(imageKey);
 
             // Not found in disk cache
-            if (thumbnail == null) {
+            if (bitmap == null) {
                 MediaMetadataRetriever retriever = new MediaMetadataRetriever();
                 try {
                     retriever.setDataSource(file.getAbsolutePath());