|
@@ -145,6 +145,12 @@ public class ChangeDeviceViewController: UIViewController {
|
|
imageView.tintColor = .white
|
|
imageView.tintColor = .white
|
|
let banner = FloatingNotificationBanner(title: "Successfully Sign-In".localized(), subtitle: nil, titleFont: UIFont.systemFont(ofSize: 16), titleColor: nil, titleTextAlign: .left, subtitleFont: nil, subtitleColor: nil, subtitleTextAlign: nil, leftView: imageView, rightView: nil, style: .success, colors: nil, iconPosition: .center)
|
|
let banner = FloatingNotificationBanner(title: "Successfully Sign-In".localized(), subtitle: nil, titleFont: UIFont.systemFont(ofSize: 16), titleColor: nil, titleTextAlign: .left, subtitleFont: nil, subtitleColor: nil, subtitleTextAlign: nil, leftView: imageView, rightView: nil, style: .success, colors: nil, iconPosition: .center)
|
|
banner.show()
|
|
banner.show()
|
|
|
|
+ if Nexilis.showFB {
|
|
|
|
+ Nexilis.floatingButton.removeFromSuperview()
|
|
|
|
+ Nexilis.floatingButton = FloatingButton()
|
|
|
|
+ let viewController = (UIApplication.shared.windows.first?.rootViewController)!
|
|
|
|
+ Nexilis.addFB(viewController: viewController, fromMAB: true)
|
|
|
|
+ }
|
|
if self.fromChangeNamePass{
|
|
if self.fromChangeNamePass{
|
|
var vc = self.navigationController?.presentingViewController
|
|
var vc = self.navigationController?.presentingViewController
|
|
while vc?.presentingViewController != nil {
|
|
while vc?.presentingViewController != nil {
|
|
@@ -259,6 +265,12 @@ public class ChangeDeviceViewController: UIViewController {
|
|
imageView.tintColor = .white
|
|
imageView.tintColor = .white
|
|
let banner = FloatingNotificationBanner(title: "Successfully Sign-In".localized(), subtitle: nil, titleFont: UIFont.systemFont(ofSize: 16), titleColor: nil, titleTextAlign: .left, subtitleFont: nil, subtitleColor: nil, subtitleTextAlign: nil, leftView: imageView, rightView: nil, style: .success, colors: nil, iconPosition: .center)
|
|
let banner = FloatingNotificationBanner(title: "Successfully Sign-In".localized(), subtitle: nil, titleFont: UIFont.systemFont(ofSize: 16), titleColor: nil, titleTextAlign: .left, subtitleFont: nil, subtitleColor: nil, subtitleTextAlign: nil, leftView: imageView, rightView: nil, style: .success, colors: nil, iconPosition: .center)
|
|
banner.show()
|
|
banner.show()
|
|
|
|
+ if Nexilis.showFB {
|
|
|
|
+ Nexilis.floatingButton.removeFromSuperview()
|
|
|
|
+ Nexilis.floatingButton = FloatingButton()
|
|
|
|
+ let viewController = (UIApplication.shared.windows.first?.rootViewController)!
|
|
|
|
+ Nexilis.addFB(viewController: viewController, fromMAB: true)
|
|
|
|
+ }
|
|
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "onRefreshWebView"), object: nil, userInfo: nil)
|
|
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "onRefreshWebView"), object: nil, userInfo: nil)
|
|
if self.fromChangeNamePass{
|
|
if self.fromChangeNamePass{
|
|
var vc = self.navigationController?.presentingViewController
|
|
var vc = self.navigationController?.presentingViewController
|