forked from shadowfacts/Tusker
parent
eb8afdaab8
commit
a92d9ddc6f
|
@ -32,8 +32,7 @@ class GalleryViewController: UIPageViewController, UIPageViewControllerDataSourc
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
override var childForHomeIndicatorAutoHidden: UIViewController? {
|
override var childForHomeIndicatorAutoHidden: UIViewController? {
|
||||||
return
|
return viewControllers?.first
|
||||||
viewControllers?.first
|
|
||||||
}
|
}
|
||||||
|
|
||||||
init(attachments: [Attachment], sourcesInfo: [LargeImageViewController.SourceInfo?], startIndex: Int) {
|
init(attachments: [Attachment], sourcesInfo: [LargeImageViewController.SourceInfo?], startIndex: Int) {
|
||||||
|
|
|
@ -153,6 +153,13 @@ class StatusTableViewCell: UITableViewCell {
|
||||||
contentWarningLabel.text = status.spoilerText
|
contentWarningLabel.text = status.spoilerText
|
||||||
contentWarningLabel.isHidden = status.spoilerText.isEmpty
|
contentWarningLabel.isHidden = status.spoilerText.isEmpty
|
||||||
|
|
||||||
|
if !collapsed,
|
||||||
|
let text = contentLabel.text,
|
||||||
|
text.count > 500 {
|
||||||
|
collapsible = true
|
||||||
|
setCollapsed(true, animated: false)
|
||||||
|
}
|
||||||
|
|
||||||
let pinned = status.pinned ?? false
|
let pinned = status.pinned ?? false
|
||||||
pinImageView.isHidden = !(pinned && showPinned)
|
pinImageView.isHidden = !(pinned && showPinned)
|
||||||
timestampLabel.isHidden = !pinImageView.isHidden
|
timestampLabel.isHidden = !pinImageView.isHidden
|
||||||
|
|
Loading…
Reference in New Issue