Skip to content

Commit

Permalink
Merge branch 'main' into T267849
Browse files Browse the repository at this point in the history
  • Loading branch information
tonisevener committed Nov 19, 2020
2 parents 88aee0a + 93a38c4 commit 6cbd044
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ class ArticleAsLivingDocController: NSObject {
var shouldAttemptToShowArticleAsLivingDoc: Bool {

guard let delegate = delegate,
delegate.articleURL.host == Configuration.Domain.englishWikipedia,
let view = delegate.view,
view.effectiveUserInterfaceLayoutDirection == .leftToRight,
delegate.articleURL.host == Configuration.Domain.englishWikipedia else {
view.effectiveUserInterfaceLayoutDirection == .leftToRight
else {
return false
}

Expand Down
2 changes: 1 addition & 1 deletion Wikipedia/Code/ArticleViewController+Announcements.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extension ArticleViewController {

func showAnnouncementIfNeeded() {
guard UserDefaults.standard.shouldCheckForArticleAnnouncements,
((shouldAttemptToShowArticleAsLivingDoc && userHasSeenSurveyPrompt) || !shouldAttemptToShowArticleAsLivingDoc) else {
((isInValidSurveyCampaignAndArticleList && userHasSeenSurveyPrompt) || !isInValidSurveyCampaignAndArticleList) else {
return
}
let predicate = NSPredicate(format: "placement == 'article'")
Expand Down

0 comments on commit 6cbd044

Please sign in to comment.