[MediaWiki-commits] [Gerrit] Forgot to implement thumbnailUIImage property; fixes Saved P... - change (apps...wikipedia)
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
Gerrit-Reviewer: Mhurd
Gerrit-Reviewer: jenkins-bot <>
___
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] Forgot to implement thumbnailUIImage property; fixes Saved P... - change (apps...wikipedia)
Brion VIBBER has uploaded a new change for review.
https://gerrit.wikimedia.org/r/177659
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(-)
git pull ssh://gerrit.wikimedia.org:29418/apps/ios/wikipedia
refs/changes/59/177659/1
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: newchange
Gerrit-Change-Id: Ib7dc498dde13a6987b56bec65fc4994650bce090
Gerrit-PatchSet: 1
Gerrit-Project: apps/ios/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Brion VIBBER
___
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
