|
@@ -52,7 +52,7 @@ public class Nexilis: NSObject {
|
|
|
|
|
|
public static var openBroadcast = false
|
|
|
|
|
|
- public static var loadingAlert = UIAlertController()
|
|
|
+ public static var loadingAlert = LibAlertController()
|
|
|
|
|
|
private func createDelegate() {
|
|
|
//print("createDelegate...")
|
|
@@ -161,16 +161,7 @@ public class Nexilis: NSObject {
|
|
|
getPullWorkingArea()
|
|
|
getPullGroupNoMember()
|
|
|
delegate.onSuccess(userId: me)
|
|
|
- if let response = Nexilis.writeSync(message: getPrefs(key: "default_cc"), timeout: 5000) {
|
|
|
- if response.mBodies[CoreMessage_TMessageKey.ERRCOD] == "00" {
|
|
|
- let data = response.getBody(key: CoreMessage_TMessageKey.DATA)
|
|
|
- if let json = try! JSONSerialization.jsonObject(with: data.data(using: String.Encoding.utf8)!, options: []) as? [[String: Any?]] {
|
|
|
- if json.count > 0 , let default_cc = json[0]["default_cc"] as? String {
|
|
|
- Utils.setDefaultCC(value: default_cc)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ getPullDefaultCC()
|
|
|
if showButton {
|
|
|
DispatchQueue.main.async {
|
|
|
var viewController = UIApplication.shared.windows.first?.rootViewController
|
|
@@ -211,6 +202,21 @@ public class Nexilis: NSObject {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private static func getPullDefaultCC() {
|
|
|
+ DispatchQueue.global().async {
|
|
|
+ if let response = Nexilis.writeSync(message: getPrefs(key: "default_cc"), timeout: 30 * 1000) {
|
|
|
+ if response.mBodies[CoreMessage_TMessageKey.ERRCOD] == "00" {
|
|
|
+ let data = response.getBody(key: CoreMessage_TMessageKey.DATA)
|
|
|
+ if let json = try! JSONSerialization.jsonObject(with: data.data(using: String.Encoding.utf8)!, options: []) as? [[String: Any?]] {
|
|
|
+ if json.count > 0 , let default_cc = json[0]["default_cc"] as? String {
|
|
|
+ Utils.setDefaultCC(value: default_cc)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private static func getPrefs(key: String) -> TMessage {
|
|
|
let tMessage = NexilisLite.TMessage()
|
|
|
let me = UserDefaults.standard.string(forKey: "me")
|
|
@@ -616,7 +622,7 @@ public class Nexilis: NSObject {
|
|
|
public static func openUrl(isBNI: Bool = false, url: String = "") {
|
|
|
let isChangeProfile = Utils.getSetProfile()
|
|
|
if !isChangeProfile {
|
|
|
- let alert = UIAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized(), preferredStyle: .alert)
|
|
|
+ let alert = LibAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized(), preferredStyle: .alert)
|
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "signupsignin") as! SignUpSignIn
|
|
|
controller.forceLogin = true
|
|
@@ -627,7 +633,7 @@ public class Nexilis: NSObject {
|
|
|
navigationController.navigationBar.isTranslucent = false
|
|
|
navigationController.navigationBar.overrideUserInterfaceStyle = .dark
|
|
|
navigationController.navigationBar.barStyle = .black
|
|
|
- let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white]
|
|
|
+ let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white, NSAttributedString.Key.font : UIFont.systemFont(ofSize: 16)]
|
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
@@ -660,7 +666,7 @@ public class Nexilis: NSObject {
|
|
|
//print("openApp itms-apps://apple.com/app/\(id)")
|
|
|
let isChangeProfile = Utils.getSetProfile()
|
|
|
if !isChangeProfile {
|
|
|
- let alert = UIAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized(), preferredStyle: .alert)
|
|
|
+ let alert = LibAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized(), preferredStyle: .alert)
|
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "signupsignin") as! SignUpSignIn
|
|
|
controller.forceLogin = true
|
|
@@ -671,7 +677,7 @@ public class Nexilis: NSObject {
|
|
|
navigationController.navigationBar.isTranslucent = false
|
|
|
navigationController.navigationBar.overrideUserInterfaceStyle = .dark
|
|
|
navigationController.navigationBar.barStyle = .black
|
|
|
- let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white]
|
|
|
+ let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white, NSAttributedString.Key.font : UIFont.systemFont(ofSize: 16)]
|
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
@@ -697,12 +703,12 @@ public class Nexilis: NSObject {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- static var alertChangeProfile = UIAlertController()
|
|
|
+ static var alertChangeProfile = LibAlertController()
|
|
|
public static func checkIsChangePerson() -> Bool {
|
|
|
let isChangeProfile = Utils.getSetProfile()
|
|
|
if !isChangeProfile {
|
|
|
alertChangeProfile.dismiss(animated: false)
|
|
|
- alertChangeProfile = UIAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized().localized(), preferredStyle: .alert)
|
|
|
+ alertChangeProfile = LibAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized().localized(), preferredStyle: .alert)
|
|
|
alertChangeProfile.addAction(UIAlertAction(title: "Cancel".localized(), style: .destructive, handler: nil))
|
|
|
alertChangeProfile.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "signupsignin") as! SignUpSignIn
|
|
@@ -714,7 +720,7 @@ public class Nexilis: NSObject {
|
|
|
navigationController.navigationBar.isTranslucent = false
|
|
|
navigationController.navigationBar.overrideUserInterfaceStyle = .dark
|
|
|
navigationController.navigationBar.barStyle = .black
|
|
|
- let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white]
|
|
|
+ let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white, NSAttributedString.Key.font : UIFont.systemFont(ofSize: 16)]
|
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
@@ -738,7 +744,7 @@ public class Nexilis: NSObject {
|
|
|
}
|
|
|
|
|
|
public static func showLoader() {
|
|
|
- loadingAlert = UIAlertController(title: nil, message: "Please wait...".localized(), preferredStyle: .alert)
|
|
|
+ loadingAlert = LibAlertController(title: nil, message: "Please wait...".localized(), preferredStyle: .alert)
|
|
|
|
|
|
let loadingIndicator = UIActivityIndicatorView(frame: CGRect(x: 10, y: 5, width: 50, height: 50))
|
|
|
loadingIndicator.hidesWhenStopped = true
|
|
@@ -1492,7 +1498,7 @@ extension UIFont {
|
|
|
|
|
|
class func jbs_registerFont(withFilenameString filenameString: String) {
|
|
|
|
|
|
- guard let pathForResourceString = Bundle.resourceBundle(for: Nexilis.self).path(forResource: filenameString, ofType: "otf") else {
|
|
|
+ guard let pathForResourceString = Bundle.resourcesMediaBundle(for: Nexilis.self).path(forResource: filenameString, ofType: "otf") else {
|
|
|
//print("UIFont+: Failed to register font - path for resource not found.")
|
|
|
return
|
|
|
}
|
|
@@ -2030,7 +2036,7 @@ extension Nexilis: MessageDelegate {
|
|
|
} else if Nexilis.onGoingPushCC["f_display_name"] == message.getBody(key: CoreMessage_TMessageKey.F_DISPLAY_NAME) {
|
|
|
return
|
|
|
}
|
|
|
- let alert = UIAlertController(title: "", message: "\n\n\n\n\n\n\n\n\n\n".localized(), preferredStyle: .alert)
|
|
|
+ let alert = LibAlertController(title: "", message: "\n\n\n\n\n\n\n\n\n\n".localized(), preferredStyle: .alert)
|
|
|
let newWidth = UIScreen.main.bounds.width * 0.90 - 270
|
|
|
// update width constraint value for main view
|
|
|
if let viewWidthConstraint = alert.view.constraints.filter({ return $0.firstAttribute == .width }).first{
|
|
@@ -2055,7 +2061,7 @@ extension Nexilis: MessageDelegate {
|
|
|
let acceptAction = UIAlertAction(title: "I'll handle the customer".localized(), style: .default, handler: {(_) in
|
|
|
let goAudioCall = Nexilis.checkMicPermission()
|
|
|
if !goAudioCall && message.getBody(key: CoreMessage_TMessageKey.CHANNEL) == "1" {
|
|
|
- let alert = UIAlertController(title: "Attention!".localized(), message: "Please allow microphone permission in your settings".localized(), preferredStyle: .alert)
|
|
|
+ let alert = LibAlertController(title: "Attention!".localized(), message: "Please allow microphone permission in your settings".localized(), preferredStyle: .alert)
|
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: { _ in
|
|
|
if let url = URL(string: UIApplication.openSettingsURLString), UIApplication.shared.canOpenURL(url) {
|
|
|
UIApplication.shared.open(url, options: [:], completionHandler: nil)
|
|
@@ -2096,7 +2102,7 @@ extension Nexilis: MessageDelegate {
|
|
|
}
|
|
|
|
|
|
if permissionCheck == 0 {
|
|
|
- let alert = UIAlertController(title: "Attention!".localized(), message: "Please allow camera permission in your settings".localized(), preferredStyle: .alert)
|
|
|
+ let alert = LibAlertController(title: "Attention!".localized(), message: "Please allow camera permission in your settings".localized(), preferredStyle: .alert)
|
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: { _ in
|
|
|
if let url = URL(string: UIApplication.openSettingsURLString), UIApplication.shared.canOpenURL(url) {
|
|
|
UIApplication.shared.open(url, options: [:], completionHandler: nil)
|
|
@@ -2120,9 +2126,9 @@ extension Nexilis: MessageDelegate {
|
|
|
let nc = UIApplication.shared.visibleViewController as! UINavigationController
|
|
|
if nc.visibleViewController is QmeraStreamingViewController {
|
|
|
let vc = nc.visibleViewController as! QmeraStreamingViewController
|
|
|
- var alert = UIAlertController(title: "", message: "Are you sure you want to end Live Streaming, and open notification?".localized(), preferredStyle: .alert)
|
|
|
+ var alert = LibAlertController(title: "", message: "Are you sure you want to end Live Streaming, and open notification?".localized(), preferredStyle: .alert)
|
|
|
if !vc.isLive {
|
|
|
- alert = UIAlertController(title: "", message: "Are you sure you want to leave Live Streaming, and open notification?".localized(), preferredStyle: .alert)
|
|
|
+ alert = LibAlertController(title: "", message: "Are you sure you want to leave Live Streaming, and open notification?".localized(), preferredStyle: .alert)
|
|
|
}
|
|
|
alert.addAction(UIAlertAction(title: "No".localized(), style: UIAlertAction.Style.default, handler: { _ in
|
|
|
DispatchQueue.global().async {
|
|
@@ -2144,9 +2150,9 @@ extension Nexilis: MessageDelegate {
|
|
|
// NotificationCenter.default.post(name: NSNotification.Name(rawValue: "isRunningStreaming"), object: nil, userInfo: dataMessage)
|
|
|
} else if nc.visibleViewController is SeminarViewController {
|
|
|
let vc = nc.visibleViewController as! SeminarViewController
|
|
|
- var alert = UIAlertController(title: "", message: "Are you sure you want to end Seminar, and open notification?".localized(), preferredStyle: .alert)
|
|
|
+ var alert = LibAlertController(title: "", message: "Are you sure you want to end Seminar, and open notification?".localized(), preferredStyle: .alert)
|
|
|
if !vc.isLive {
|
|
|
- alert = UIAlertController(title: "", message: "Are you sure you want to leave Seminar, and open notification?".localized(), preferredStyle: .alert)
|
|
|
+ alert = LibAlertController(title: "", message: "Are you sure you want to leave Seminar, and open notification?".localized(), preferredStyle: .alert)
|
|
|
}
|
|
|
alert.addAction(UIAlertAction(title: "No".localized(), style: UIAlertAction.Style.default, handler: { _ in
|
|
|
DispatchQueue.global().async {
|
|
@@ -2197,7 +2203,7 @@ extension Nexilis: MessageDelegate {
|
|
|
navigationController.navigationBar.isTranslucent = false
|
|
|
navigationController.navigationBar.overrideUserInterfaceStyle = .dark
|
|
|
navigationController.navigationBar.barStyle = .black
|
|
|
- let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white]
|
|
|
+ let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white, NSAttributedString.Key.font : UIFont.systemFont(ofSize: 16)]
|
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
@@ -2390,7 +2396,7 @@ extension Nexilis: MessageDelegate {
|
|
|
}
|
|
|
listCCIdInv.append(message.getBody(key: CoreMessage_TMessageKey.CALL_CENTER_ID))
|
|
|
DispatchQueue.main.async {
|
|
|
- let alert = UIAlertController(title: "", message: "\n\n\n\n\n\n\n\n\n\n".localized(), preferredStyle: .alert)
|
|
|
+ let alert = LibAlertController(title: "", message: "\n\n\n\n\n\n\n\n\n\n".localized(), preferredStyle: .alert)
|
|
|
let newWidth = UIScreen.main.bounds.width * 0.90 - 270
|
|
|
// update width constraint value for main view
|
|
|
if let viewWidthConstraint = alert.view.constraints.filter({ return $0.firstAttribute == .width }).first{
|
|
@@ -2420,7 +2426,7 @@ extension Nexilis: MessageDelegate {
|
|
|
listCCIdInv.removeAll(where: {$0 == message.getBody(key: CoreMessage_TMessageKey.CALL_CENTER_ID)})
|
|
|
let goAudioCall = Nexilis.checkMicPermission()
|
|
|
if !goAudioCall && message.getBody(key: CoreMessage_TMessageKey.CHANNEL) == "1" {
|
|
|
- let alert = UIAlertController(title: "Attention!".localized(), message: "Please allow microphone permission in your settings".localized(), preferredStyle: .alert)
|
|
|
+ let alert = LibAlertController(title: "Attention!".localized(), message: "Please allow microphone permission in your settings".localized(), preferredStyle: .alert)
|
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: { _ in
|
|
|
if let url = URL(string: UIApplication.openSettingsURLString), UIApplication.shared.canOpenURL(url) {
|
|
|
UIApplication.shared.open(url, options: [:], completionHandler: nil)
|
|
@@ -2461,7 +2467,7 @@ extension Nexilis: MessageDelegate {
|
|
|
}
|
|
|
|
|
|
if permissionCheck == 0 {
|
|
|
- let alert = UIAlertController(title: "Attention!".localized(), message: "Please allow camera permission in your settings".localized(), preferredStyle: .alert)
|
|
|
+ let alert = LibAlertController(title: "Attention!".localized(), message: "Please allow camera permission in your settings".localized(), preferredStyle: .alert)
|
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: { _ in
|
|
|
if let url = URL(string: UIApplication.openSettingsURLString), UIApplication.shared.canOpenURL(url) {
|
|
|
UIApplication.shared.open(url, options: [:], completionHandler: nil)
|
|
@@ -2486,9 +2492,9 @@ extension Nexilis: MessageDelegate {
|
|
|
let nc = UIApplication.shared.visibleViewController as! UINavigationController
|
|
|
if nc.visibleViewController is QmeraStreamingViewController {
|
|
|
let vc = nc.visibleViewController as! QmeraStreamingViewController
|
|
|
- var alert = UIAlertController(title: "", message: "Are you sure you want to end Live Streaming, and open notification?".localized(), preferredStyle: .alert)
|
|
|
+ var alert = LibAlertController(title: "", message: "Are you sure you want to end Live Streaming, and open notification?".localized(), preferredStyle: .alert)
|
|
|
if !vc.isLive {
|
|
|
- alert = UIAlertController(title: "", message: "Are you sure you want to leave Live Streaming, and open notification?".localized(), preferredStyle: .alert)
|
|
|
+ alert = LibAlertController(title: "", message: "Are you sure you want to leave Live Streaming, and open notification?".localized(), preferredStyle: .alert)
|
|
|
}
|
|
|
alert.addAction(UIAlertAction(title: "No".localized(), style: UIAlertAction.Style.default, handler: { _ in
|
|
|
DispatchQueue.global().async {
|
|
@@ -2512,9 +2518,9 @@ extension Nexilis: MessageDelegate {
|
|
|
nc.present(alert, animated: true, completion: nil)
|
|
|
} else if nc.visibleViewController is SeminarViewController {
|
|
|
let vc = nc.visibleViewController as! SeminarViewController
|
|
|
- var alert = UIAlertController(title: "", message: "Are you sure you want to end Seminar, and open notification?".localized(), preferredStyle: .alert)
|
|
|
+ var alert = LibAlertController(title: "", message: "Are you sure you want to end Seminar, and open notification?".localized(), preferredStyle: .alert)
|
|
|
if !vc.isLive {
|
|
|
- alert = UIAlertController(title: "", message: "Are you sure you want to leave Seminar, and open notification?".localized(), preferredStyle: .alert)
|
|
|
+ alert = LibAlertController(title: "", message: "Are you sure you want to leave Seminar, and open notification?".localized(), preferredStyle: .alert)
|
|
|
}
|
|
|
alert.addAction(UIAlertAction(title: "No".localized(), style: UIAlertAction.Style.default, handler: { _ in
|
|
|
DispatchQueue.global().async {
|
|
@@ -2594,7 +2600,7 @@ extension Nexilis: MessageDelegate {
|
|
|
navigationController.navigationBar.isTranslucent = false
|
|
|
navigationController.navigationBar.overrideUserInterfaceStyle = .dark
|
|
|
navigationController.navigationBar.barStyle = .black
|
|
|
- let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white]
|
|
|
+ let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white, NSAttributedString.Key.font : UIFont.systemFont(ofSize: 16)]
|
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
@@ -3024,7 +3030,7 @@ extension Nexilis: MessageDelegate {
|
|
|
Database.shared.database?.inTransaction({ (fmdb, rollback) in
|
|
|
if let cursorData = Database.shared.getRecords(fmdb: fmdb, query: "SELECT first_name, last_name FROM BUDDY where f_pin = '\(UserDefaults.standard.string(forKey: "me")!)'"), cursorData.next() {
|
|
|
if (cursorData.string(forColumnIndex: 0)! + " " + cursorData.string(forColumnIndex: 1)!).trimmingCharacters(in: .whitespaces) == "USR\(UserDefaults.standard.string(forKey: "me")!)" {
|
|
|
- let alert = UIAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized(), preferredStyle: .alert)
|
|
|
+ let alert = LibAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized(), preferredStyle: .alert)
|
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "signupsignin") as! SignUpSignIn
|
|
|
controller.forceLogin = true
|
|
@@ -3035,7 +3041,7 @@ extension Nexilis: MessageDelegate {
|
|
|
navigationController.navigationBar.isTranslucent = false
|
|
|
navigationController.navigationBar.overrideUserInterfaceStyle = .dark
|
|
|
navigationController.navigationBar.barStyle = .black
|
|
|
- let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white]
|
|
|
+ let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white, NSAttributedString.Key.font : UIFont.systemFont(ofSize: 16)]
|
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
@@ -3078,7 +3084,7 @@ extension Nexilis: MessageDelegate {
|
|
|
navigationController.navigationBar.isTranslucent = false
|
|
|
navigationController.navigationBar.overrideUserInterfaceStyle = .dark
|
|
|
navigationController.navigationBar.barStyle = .black
|
|
|
- let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white]
|
|
|
+ let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white, NSAttributedString.Key.font : UIFont.systemFont(ofSize: 16)]
|
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
@@ -3093,9 +3099,9 @@ extension Nexilis: MessageDelegate {
|
|
|
let nc = UIApplication.shared.visibleViewController as! UINavigationController
|
|
|
if nc.visibleViewController is QmeraStreamingViewController {
|
|
|
let vc = nc.visibleViewController as! QmeraStreamingViewController
|
|
|
- var alert = UIAlertController(title: "", message: "Are you sure you want to end Live Streaming, and open notification?".localized(), preferredStyle: .alert)
|
|
|
+ var alert = LibAlertController(title: "", message: "Are you sure you want to end Live Streaming, and open notification?".localized(), preferredStyle: .alert)
|
|
|
if !vc.isLive {
|
|
|
- alert = UIAlertController(title: "", message: "Are you sure you want to leave Live Streaming, and open notification?".localized(), preferredStyle: .alert)
|
|
|
+ alert = LibAlertController(title: "", message: "Are you sure you want to leave Live Streaming, and open notification?".localized(), preferredStyle: .alert)
|
|
|
}
|
|
|
alert.addAction(UIAlertAction(title: "No".localized(), style: UIAlertAction.Style.default, handler: nil))
|
|
|
alert.addAction(UIAlertAction(title: "Yes".localized(), style: UIAlertAction.Style.default, handler: { _ in
|
|
@@ -3111,9 +3117,9 @@ extension Nexilis: MessageDelegate {
|
|
|
// NotificationCenter.default.post(name: NSNotification.Name(rawValue: "isRunningStreaming"), object: nil, userInfo: dataMessage)
|
|
|
} else if nc.visibleViewController is SeminarViewController {
|
|
|
let vc = nc.visibleViewController as! SeminarViewController
|
|
|
- var alert = UIAlertController(title: "", message: "Are you sure you want to end Seminar, and open notification?".localized(), preferredStyle: .alert)
|
|
|
+ var alert = LibAlertController(title: "", message: "Are you sure you want to end Seminar, and open notification?".localized(), preferredStyle: .alert)
|
|
|
if !vc.isLive {
|
|
|
- alert = UIAlertController(title: "", message: "Are you sure you want to leave Seminar, and open notification?".localized(), preferredStyle: .alert)
|
|
|
+ alert = LibAlertController(title: "", message: "Are you sure you want to leave Seminar, and open notification?".localized(), preferredStyle: .alert)
|
|
|
}
|
|
|
alert.addAction(UIAlertAction(title: "No".localized(), style: UIAlertAction.Style.default, handler: nil))
|
|
|
alert.addAction(UIAlertAction(title: "Yes".localized(), style: UIAlertAction.Style.default, handler: { _ in
|
|
@@ -3171,7 +3177,7 @@ extension Nexilis: MessageDelegate {
|
|
|
navigationController.navigationBar.isTranslucent = false
|
|
|
navigationController.navigationBar.overrideUserInterfaceStyle = .dark
|
|
|
navigationController.navigationBar.barStyle = .black
|
|
|
- let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white]
|
|
|
+ let cancelButtonAttributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.white, NSAttributedString.Key.font : UIFont.systemFont(ofSize: 16)]
|
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
@@ -3186,9 +3192,9 @@ extension Nexilis: MessageDelegate {
|
|
|
let nc = UIApplication.shared.visibleViewController as! UINavigationController
|
|
|
if nc.visibleViewController is QmeraStreamingViewController {
|
|
|
let vc = nc.visibleViewController as! QmeraStreamingViewController
|
|
|
- var alert = UIAlertController(title: "", message: "Are you sure you want to end Live Streaming, and open notification?".localized(), preferredStyle: .alert)
|
|
|
+ var alert = LibAlertController(title: "", message: "Are you sure you want to end Live Streaming, and open notification?".localized(), preferredStyle: .alert)
|
|
|
if !vc.isLive {
|
|
|
- alert = UIAlertController(title: "", message: "Are you sure you want to leave Live Streaming, and open notification?".localized(), preferredStyle: .alert)
|
|
|
+ alert = LibAlertController(title: "", message: "Are you sure you want to leave Live Streaming, and open notification?".localized(), preferredStyle: .alert)
|
|
|
}
|
|
|
alert.addAction(UIAlertAction(title: "No".localized(), style: UIAlertAction.Style.default, handler: nil))
|
|
|
alert.addAction(UIAlertAction(title: "Yes".localized(), style: UIAlertAction.Style.default, handler: { _ in
|
|
@@ -3204,9 +3210,9 @@ extension Nexilis: MessageDelegate {
|
|
|
// NotificationCenter.default.post(name: NSNotification.Name(rawValue: "isRunningStreaming"), object: nil, userInfo: dataMessage)
|
|
|
} else if nc.visibleViewController is SeminarViewController {
|
|
|
let vc = nc.visibleViewController as! SeminarViewController
|
|
|
- var alert = UIAlertController(title: "", message: "Are you sure you want to end Seminar, and open notification?".localized(), preferredStyle: .alert)
|
|
|
+ var alert = LibAlertController(title: "", message: "Are you sure you want to end Seminar, and open notification?".localized(), preferredStyle: .alert)
|
|
|
if !vc.isLive {
|
|
|
- alert = UIAlertController(title: "", message: "Are you sure you want to leave Seminar, and open notification?".localized(), preferredStyle: .alert)
|
|
|
+ alert = LibAlertController(title: "", message: "Are you sure you want to leave Seminar, and open notification?".localized(), preferredStyle: .alert)
|
|
|
}
|
|
|
alert.addAction(UIAlertAction(title: "No".localized(), style: UIAlertAction.Style.default, handler: nil))
|
|
|
alert.addAction(UIAlertAction(title: "Yes".localized(), style: UIAlertAction.Style.default, handler: { _ in
|