mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Don't put local URI into thumbnail cache.
This commit is contained in:
parent
5fc684fcc5
commit
39e24b1863
1 changed files with 3 additions and 1 deletions
|
|
@ -64,8 +64,10 @@ public class MediaWikiImageView extends SimpleDraweeView {
|
||||||
}
|
}
|
||||||
if (TextUtils.isEmpty(result) && media.getLocalUri() != null) {
|
if (TextUtils.isEmpty(result) && media.getLocalUri() != null) {
|
||||||
result = media.getLocalUri().toString();
|
result = media.getLocalUri().toString();
|
||||||
|
} else {
|
||||||
|
// only cache meaningful thumbnails received from network.
|
||||||
|
CommonsApplication.getInstance().getThumbnailUrlCache().put(media.getFilename(), result);
|
||||||
}
|
}
|
||||||
CommonsApplication.getInstance().getThumbnailUrlCache().put(media.getFilename(), result);
|
|
||||||
setImageUrl(result);
|
setImageUrl(result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue