Mhurd has submitted this change and it was merged.
Change subject: Forgot to implement thumbnailUIImage property; fixes Saved
Pages thumbnails
......................................................................
Forgot to implement thumbnailUIImage property; fixes Saved Pages thumbnails
Change-Id: Ib7dc498dde13a6987b56bec65fc4994650bce090
---
M MediaWikiKit/MediaWikiKit/MWKArticleStore.m
1 file changed, 12 insertions(+), 0 deletions(-)
Approvals:
Mhurd: Verified; Looks good to me, approved
diff --git a/MediaWikiKit/MediaWikiKit/MWKArticleStore.m
b/MediaWikiKit/MediaWikiKit/MWKArticleStore.m
index c262229..3581d1c 100644
--- a/MediaWikiKit/MediaWikiKit/MWKArticleStore.m
+++ b/MediaWikiKit/MediaWikiKit/MWKArticleStore.m
@@ -231,4 +231,16 @@
[self.imageList addImageURL:thumbnailImage.sourceURL
sectionId:MWK_SECTIONID_THUMBNAIL];
[self saveImageList];
}
+
+-(UIImage *)thumbnailUIImage
+{
+ MWKImage *image = self.thumbnailImage;
+ if (image) {
+ NSData *data = [self imageDataWithImage:image];
+ return [UIImage imageWithData:data];
+ } else {
+ return nil;
+ }
+}
+
@end
--
To view, visit https://gerrit.wikimedia.org/r/177659
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib7dc498dde13a6987b56bec65fc4994650bce090
Gerrit-PatchSet: 1
Gerrit-Project: apps/ios/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Brion VIBBER <[email protected]>
Gerrit-Reviewer: Mhurd <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits