fix: image inside list flushes when loading more or in other situations
This commit is contained in:
@@ -25,7 +25,13 @@ @implementation DoricBundleResource
|
||||
NSString *path = [self.bundle bundlePath];
|
||||
NSString *fullPath = [path stringByAppendingPathComponent:self.identifier];
|
||||
NSData *imgData = [[NSData alloc] initWithContentsOfFile:fullPath];
|
||||
[result setupResult:imgData];
|
||||
if (imgData) {
|
||||
[result setupResult:imgData];
|
||||
} else {
|
||||
[result setupError:[NSException exceptionWithName:@"ResourceLoadError"
|
||||
reason:@"Load resource error"
|
||||
userInfo:nil]];
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@end
|
||||
|
Reference in New Issue
Block a user