From: tobiasKaminsky Date: Fri, 13 Nov 2015 17:33:21 +0000 (+0100) Subject: show cache size in mb X-Git-Tag: beta-20151129~5^2~2 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/11774de5414207fdf721f3fff5685c1f7ab84404?ds=inline;hp=--cc show cache size in mb --- 11774de5414207fdf721f3fff5685c1f7ab84404 diff --git a/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java b/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java index 143d8206..ded69926 100644 --- a/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java +++ b/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java @@ -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; }