|
@@ -116,7 +116,7 @@ class MVHomeController: MVBaseController {
|
|
|
if rootViewController is UINavigationController {
|
|
|
rootViewController = (rootViewController as? UINavigationController)?.visibleViewController
|
|
|
}
|
|
|
- BFLog(message: "rootViewController is \(rootViewController)")
|
|
|
+ BFLog(message: "rootViewController is \(String(describing: rootViewController))")
|
|
|
if rootViewController is MVHomeController {
|
|
|
controlPlayrPasueOrResume(isPause: true)
|
|
|
}
|
|
@@ -128,7 +128,7 @@ class MVHomeController: MVBaseController {
|
|
|
if rootViewController is UINavigationController {
|
|
|
rootViewController = (rootViewController as? UINavigationController)?.visibleViewController
|
|
|
}
|
|
|
- BFLog(message: "rootViewController is \(rootViewController)")
|
|
|
+ BFLog(message: "rootViewController is \(String(describing: rootViewController))")
|
|
|
if rootViewController is MVHomeController {
|
|
|
controlPlayrPasueOrResume(isPause: false)
|
|
|
}
|
|
@@ -273,6 +273,7 @@ class MVHomeController: MVBaseController {
|
|
|
}
|
|
|
UIApplication.shared.keyWindow?.addSubview(protocalView)
|
|
|
}
|
|
|
+ try? AVAudioSession.sharedInstance().setCategory(.playback)
|
|
|
}
|
|
|
|
|
|
func addLayout() {
|
|
@@ -340,7 +341,7 @@ class MVHomeController: MVBaseController {
|
|
|
let remindView = PQRemindView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
|
|
|
UIApplication.shared.keyWindow?.addSubview(remindView)
|
|
|
remindView.remindData = remindData
|
|
|
- remindView.remindBlock = { [weak self] sender, _ in
|
|
|
+ remindView.remindBlock = { sender, _ in
|
|
|
if sender.tag == 2 {
|
|
|
openAppSetting()
|
|
|
}
|