Merge remote-tracking branch 'remotes/upstream/resizeCache' into beta
authortobiasKaminsky <tobias@kaminsky.me>
Wed, 18 Nov 2015 12:18:08 +0000 (13:18 +0100)
committertobiasKaminsky <tobias@kaminsky.me>
Wed, 18 Nov 2015 12:18:08 +0000 (13:18 +0100)
src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java

index 10dfbd7..70730fd 100644 (file)
@@ -166,9 +166,13 @@ public class ThumbnailsCacheManager {
         }
     }
 
+    /**
+     * Shows max cache size
+     * @return max cache size in MB.
+     */
     public static long getMaxSize(){
         if (mThumbnailCache != null) {
-            return mThumbnailCache.getMaxSize();
+            return mThumbnailCache.getMaxSize() / 1024 / 1024;
         } else {
             return -1l;
         }