projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'remotes/upstream/master' into beta
[pub/Android/ownCloud.git]
/
src
/
com
/
owncloud
/
android
/
datamodel
/
ThumbnailsCacheManager.java
diff --git
a/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java
b/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java
index
3586fd5
..
56c9063
100644
(file)
--- a/
src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java
+++ b/
src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java
@@
-424,13
+424,20
@@
public class ThumbnailsCacheManager {
}
private Bitmap doFileInBackground(Boolean mIsThumbnail) {
}
private Bitmap doFileInBackground(Boolean mIsThumbnail) {
- Bitmap thumbnail = null;
File file = (File)mFile;
File file = (File)mFile;
- final String imageKey = String.valueOf(file.hashCode());
+ // distinguish between thumbnail and resized image
+ String temp = String.valueOf(file.hashCode());
+ if (mIsThumbnail){
+ temp = "t" + temp;
+ } else {
+ temp = "r" + temp;
+ }
+
+ final String imageKey = temp;
// Check disk cache in background thread
// Check disk cache in background thread
- thumbnail = getBitmapFromDiskCache(imageKey);
+
Bitmap
thumbnail = getBitmapFromDiskCache(imageKey);
// Not found in disk cache
if (thumbnail == null) {
// Not found in disk cache
if (thumbnail == null) {