return lib.getSourceCover(source);
}
+ @Override
+ public Image getAuthorCover(String author) {
+ Image custom = getCustomSourceCover(author);
+ if (custom != null) {
+ return custom;
+ }
+
+ Image cached = cacheLib.getSourceCover(author);
+ if (cached != null) {
+ return cached;
+ }
+
+ return lib.getSourceCover(author);
+
+ }
+
@Override
public Image getCustomSourceCover(String source) {
Image custom = cacheLib.getCustomSourceCover(source);
return custom;
}
+
+ @Override
+ public Image getCustomAuthorCover(String author) {
+ Image custom = cacheLib.getCustomAuthorCover(author);
+ if (custom == null) {
+ custom = lib.getCustomAuthorCover(author);
+ if (custom != null) {
+ cacheLib.setAuthorCover(author, custom);
+ }
+ }
+
+ return custom;
+ }
@Override
public void setSourceCover(String source, String luid) {
cacheLib.setSourceCover(source, getCover(luid));
}
+ @Override
+ public void setAuthorCover(String author, String luid) {
+ lib.setAuthorCover(author, luid);
+ cacheLib.setAuthorCover(author, getCover(luid));
+ }
+
@Override
protected void updateInfo(MetaData meta) {
if (meta != null && metas != null) {