Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
Update sumo article for 8.0 (#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
sblatz authored Nov 16, 2018
1 parent a331a77 commit 90c209c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 9 additions & 4 deletions Blockzilla/SettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -661,10 +661,15 @@ class SettingsViewController: UIViewController, UITableViewDataSource, UITableVi
}

@objc private func whatsNewClicked() {
highlightsButton?.tintColor = UIColor.white
guard let url = SupportUtils.URLForTopic(topic: UIConstants.strings.sumoTopicWhatsNew) else { return }

navigationController?.pushViewController(SettingsContentViewController(url: url), animated: true)
highlightsButton?.tintColor = UIColor.white
guard let focusURL = SupportUtils.URLForTopic(topic: UIConstants.strings.sumoTopicWhatsNew) else { return }
guard let klarURL = SupportUtils.URLForTopic(topic: UIConstants.strings.klarSumoTopicWhatsNew) else { return }

if AppInfo.isKlar {
navigationController?.pushViewController(SettingsContentViewController(url: klarURL), animated: true)
} else {
navigationController?.pushViewController(SettingsContentViewController(url: focusURL), animated: true)
}

whatsNew.didShowWhatsNew()
}
Expand Down
3 changes: 2 additions & 1 deletion Blockzilla/UIConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@ struct UIConstants {
static let siriEraseTipTitle = String(format: "Ask Siri to erase %@ history:", AppInfo.productName)
static let siriEraseTipDescription = "Add Siri shortcut"
static let shareTrackersTipTitle = "%@ trackers blocked so far"
static let sumoTopicWhatsNew = "whats-new-focus-ios-7"
static let sumoTopicWhatsNew = "whats-new-focus-ios-8"
static let klarSumoTopicWhatsNew = "whats-new-firefox-klar-ios-version-8"
static let encodingNameUTF8 = "utf-8"
static let googleAmpURLPrefix = "https://www.google.com/amp/s/"
}
Expand Down

0 comments on commit 90c209c

Please sign in to comment.