show cache size in mb
authortobiasKaminsky <tobias@kaminsky.me>
Fri, 13 Nov 2015 17:33:21 +0000 (18:33 +0100)
committertobiasKaminsky <tobias@kaminsky.me>
Fri, 13 Nov 2015 17:33:21 +0000 (18:33 +0100)
src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java

index 143d820..ded6992 100644 (file)
@@ -154,9 +154,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;
         }