|
@@ -48,6 +48,7 @@ class ViewController: UITabBarController, UITabBarControllerDelegate, SettingMAB
|
|
var termVC: UIViewController?
|
|
var termVC: UIViewController?
|
|
let welcomeDesc = UILabel()
|
|
let welcomeDesc = UILabel()
|
|
let termText = "Read our Terms of Service. Tap \"Agree and Continue\" to accept Terms of Service.".localized()
|
|
let termText = "Read our Terms of Service. Tap \"Agree and Continue\" to accept Terms of Service.".localized()
|
|
|
|
+ let notifDisclaim = "Enabling notifications ensures you receive important updates, alerts, and reminders from our app. By turning on notifications, you agree to receive push notifications related to app features, promotions, and relevant updates.".localized()
|
|
let term = "Terms of Service.".localized()
|
|
let term = "Terms of Service.".localized()
|
|
var firstLoad = true
|
|
var firstLoad = true
|
|
let privacyWV = WKWebView()
|
|
let privacyWV = WKWebView()
|
|
@@ -797,7 +798,7 @@ class ViewController: UITabBarController, UITabBarControllerDelegate, SettingMAB
|
|
containerButton.addSubview(titleAgree)
|
|
containerButton.addSubview(titleAgree)
|
|
titleAgree.anchor(left: imageAgree.rightAnchor, right: containerButton.rightAnchor, paddingLeft: 5, centerY: containerButton.centerYAnchor)
|
|
titleAgree.anchor(left: imageAgree.rightAnchor, right: containerButton.rightAnchor, paddingLeft: 5, centerY: containerButton.centerYAnchor)
|
|
|
|
|
|
- let formattedText = String.format(strings: [term], inString: termText, color: self.traitCollection.userInterfaceStyle == .dark ? UIColor.white: UIColor.black)
|
|
|
|
|
|
+ let formattedText = String.format(strings: [term], inString: "\(termText)\n\n\(notifDisclaim)", color: self.traitCollection.userInterfaceStyle == .dark ? UIColor.white: UIColor.black)
|
|
welcomeDesc.isUserInteractionEnabled = true
|
|
welcomeDesc.isUserInteractionEnabled = true
|
|
welcomeDesc.attributedText = formattedText
|
|
welcomeDesc.attributedText = formattedText
|
|
welcomeDesc.numberOfLines = 0
|
|
welcomeDesc.numberOfLines = 0
|
|
@@ -1107,15 +1108,15 @@ class ViewController: UITabBarController, UITabBarControllerDelegate, SettingMAB
|
|
let urlString = PrefsUtil.getURLBase() + "get_file_from_path?img=\(icon)"
|
|
let urlString = PrefsUtil.getURLBase() + "get_file_from_path?img=\(icon)"
|
|
if let cachedImage = ImageCache.shared.image(forKey: urlString) {
|
|
if let cachedImage = ImageCache.shared.image(forKey: urlString) {
|
|
if i == 0 {
|
|
if i == 0 {
|
|
- ViewController.chatButton.setBackgroundImage(cachedImage, for: .normal)
|
|
|
|
|
|
+// ViewController.chatButton.setBackgroundImage(cachedImage, for: .normal)
|
|
} else if i == 1 {
|
|
} else if i == 1 {
|
|
- ViewController.callButton.setBackgroundImage(cachedImage, for: .normal)
|
|
|
|
|
|
+// ViewController.callButton.setBackgroundImage(cachedImage, for: .normal)
|
|
} else if i == 2 {
|
|
} else if i == 2 {
|
|
- ViewController.ccButton.setBackgroundImage(cachedImage, for: .normal)
|
|
|
|
|
|
+// ViewController.ccButton.setBackgroundImage(cachedImage, for: .normal)
|
|
} else if i == 3 {
|
|
} else if i == 3 {
|
|
- ViewController.postButton.setBackgroundImage(cachedImage, for: .normal)
|
|
|
|
|
|
+// ViewController.postButton.setBackgroundImage(cachedImage, for: .normal)
|
|
} else if i == 4 {
|
|
} else if i == 4 {
|
|
- ViewController.streamingButton.setBackgroundImage(cachedImage, for: .normal)
|
|
|
|
|
|
+// ViewController.streamingButton.setBackgroundImage(cachedImage, for: .normal)
|
|
}
|
|
}
|
|
return
|
|
return
|
|
}
|
|
}
|