diff --git a/owncloudApp/src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java b/owncloudApp/src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java index 848cda724941..da94588625f8 100644 --- a/owncloudApp/src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java +++ b/owncloudApp/src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java @@ -356,11 +356,14 @@ private Bitmap doFileInBackground() { } private String getSpaceSpecialUri(SpaceSpecial spaceSpecial) { + // Converts dp to pixel + Resources r = MainApp.Companion.getAppContext().getResources(); + Integer spacesThumbnailSize = Math.round(r.getDimension(R.dimen.spaces_thumbnail_height)) * 2; return String.format(Locale.ROOT, SPACE_SPECIAL_URI, spaceSpecial.getWebDavUrl(), - getThumbnailDimension(), - getThumbnailDimension(), + spacesThumbnailSize, + spacesThumbnailSize, spaceSpecial.getETag()); } @@ -373,7 +376,7 @@ private Bitmap doSpaceImageInBackground() { Bitmap thumbnail = getBitmapFromDiskCache(imageKey); // Not found in disk cache - if (thumbnail == null) { // TODO: Check if the current thumbnail is outdated + if (thumbnail == null) { int px = getThumbnailDimension(); // Download thumbnail from server diff --git a/owncloudApp/src/main/res/layout/spaces_list_item.xml b/owncloudApp/src/main/res/layout/spaces_list_item.xml index 2c4b518a281c..b91d2b55ca87 100644 --- a/owncloudApp/src/main/res/layout/spaces_list_item.xml +++ b/owncloudApp/src/main/res/layout/spaces_list_item.xml @@ -42,7 +42,7 @@ diff --git a/owncloudApp/src/main/res/values-h640dp/dims.xml b/owncloudApp/src/main/res/values-h640dp/dims.xml index 75deca8312d6..cc53084f8a4f 100644 --- a/owncloudApp/src/main/res/values-h640dp/dims.xml +++ b/owncloudApp/src/main/res/values-h640dp/dims.xml @@ -23,4 +23,7 @@ 50dp 16dp 8dp - \ No newline at end of file + + + 192dp + diff --git a/owncloudApp/src/main/res/values-h740dp/dims.xml b/owncloudApp/src/main/res/values-h740dp/dims.xml index 745408ea4de6..d4973189f1d4 100644 --- a/owncloudApp/src/main/res/values-h740dp/dims.xml +++ b/owncloudApp/src/main/res/values-h740dp/dims.xml @@ -23,4 +23,7 @@ 100dp 32dp 8dp - \ No newline at end of file + + + 256dp + diff --git a/owncloudApp/src/main/res/values/dims.xml b/owncloudApp/src/main/res/values/dims.xml index 02b3a7e560ac..563b43811a41 100644 --- a/owncloudApp/src/main/res/values/dims.xml +++ b/owncloudApp/src/main/res/values/dims.xml @@ -1,5 +1,4 @@ - - + 156dp