|
@@ -390,7 +390,7 @@ public class FloatingButton: UIView {
|
|
|
|
|
|
@objc func tapMoreApp(_ sender: UIButton) {
|
|
@objc func tapMoreApp(_ sender: UIButton) {
|
|
let id = sender.restorationIdentifier
|
|
let id = sender.restorationIdentifier
|
|
- let isChangeProfile = UserDefaults.standard.bool(forKey: "is_change_profile")
|
|
|
|
|
|
+ let isChangeProfile = Utils.getSetProfile()
|
|
if !isChangeProfile {
|
|
if !isChangeProfile {
|
|
let alert = UIAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized(), preferredStyle: .alert)
|
|
let alert = UIAlertController(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
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
@@ -427,7 +427,7 @@ public class FloatingButton: UIView {
|
|
}
|
|
}
|
|
|
|
|
|
@objc func fb1Tap() {
|
|
@objc func fb1Tap() {
|
|
- let isChangeProfile = UserDefaults.standard.bool(forKey: "is_change_profile")
|
|
|
|
|
|
+ let isChangeProfile = Utils.getSetProfile()
|
|
if !isChangeProfile {
|
|
if !isChangeProfile {
|
|
let alert = UIAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized(), preferredStyle: .alert)
|
|
let alert = UIAlertController(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
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
@@ -481,7 +481,7 @@ public class FloatingButton: UIView {
|
|
}
|
|
}
|
|
|
|
|
|
@objc func fb2Tap() {
|
|
@objc func fb2Tap() {
|
|
- let isChangeProfile = UserDefaults.standard.bool(forKey: "is_change_profile")
|
|
|
|
|
|
+ let isChangeProfile = Utils.getSetProfile()
|
|
if !isChangeProfile {
|
|
if !isChangeProfile {
|
|
let alert = UIAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized(), preferredStyle: .alert)
|
|
let alert = UIAlertController(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
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
@@ -525,7 +525,7 @@ public class FloatingButton: UIView {
|
|
}
|
|
}
|
|
|
|
|
|
@objc func fb3Tap() {
|
|
@objc func fb3Tap() {
|
|
- let isChangeProfile = UserDefaults.standard.bool(forKey: "is_change_profile")
|
|
|
|
|
|
+ let isChangeProfile = Utils.getSetProfile()
|
|
if !isChangeProfile {
|
|
if !isChangeProfile {
|
|
let alert = UIAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized(), preferredStyle: .alert)
|
|
let alert = UIAlertController(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
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
@@ -570,7 +570,7 @@ public class FloatingButton: UIView {
|
|
}
|
|
}
|
|
|
|
|
|
@objc func fb4Tap() {
|
|
@objc func fb4Tap() {
|
|
- let isChangeProfile = UserDefaults.standard.bool(forKey: "is_change_profile")
|
|
|
|
|
|
+ let isChangeProfile = Utils.getSetProfile()
|
|
if !isChangeProfile {
|
|
if !isChangeProfile {
|
|
let alert = UIAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized(), preferredStyle: .alert)
|
|
let alert = UIAlertController(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
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
@@ -614,7 +614,7 @@ public class FloatingButton: UIView {
|
|
}
|
|
}
|
|
|
|
|
|
@objc func bniBookingTap() {
|
|
@objc func bniBookingTap() {
|
|
- let isChangeProfile = UserDefaults.standard.bool(forKey: "is_change_profile")
|
|
|
|
|
|
+ let isChangeProfile = Utils.getSetProfile()
|
|
if !isChangeProfile {
|
|
if !isChangeProfile {
|
|
let alert = UIAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized(), preferredStyle: .alert)
|
|
let alert = UIAlertController(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
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
@@ -651,7 +651,7 @@ public class FloatingButton: UIView {
|
|
}
|
|
}
|
|
|
|
|
|
@objc func openCustomURL(url: String) {
|
|
@objc func openCustomURL(url: String) {
|
|
- let isChangeProfile = UserDefaults.standard.bool(forKey: "is_change_profile")
|
|
|
|
|
|
+ let isChangeProfile = Utils.getSetProfile()
|
|
if !isChangeProfile {
|
|
if !isChangeProfile {
|
|
let alert = UIAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized(), preferredStyle: .alert)
|
|
let alert = UIAlertController(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
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
@@ -689,7 +689,7 @@ public class FloatingButton: UIView {
|
|
}
|
|
}
|
|
|
|
|
|
@objc func historyBroadcastTap() {
|
|
@objc func historyBroadcastTap() {
|
|
- let isChangeProfile = UserDefaults.standard.bool(forKey: "is_change_profile")
|
|
|
|
|
|
+ let isChangeProfile = Utils.getSetProfile()
|
|
if !isChangeProfile {
|
|
if !isChangeProfile {
|
|
let alert = UIAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized(), preferredStyle: .alert)
|
|
let alert = UIAlertController(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
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|