[6.4.0]
[各端相互通讯授权]
This commit is contained in:
@@ -60,8 +60,10 @@ abstract class FacadeProvider : IMoGoFunctionProvider, ILoginCallback {
|
||||
private fun showFragment() {
|
||||
val supportFragmentManager: FragmentManager? = activity?.supportFragmentManager
|
||||
val fragment = if (LoginStatusManager.isLogin()) {
|
||||
injectStatusBar()
|
||||
getFragment()
|
||||
} else {
|
||||
removeStatusBar()
|
||||
CallerHmiManager.hideToolsView()
|
||||
ToggleDebugView.toggleDebugView.dismiss()
|
||||
SopView.sopView.dismiss()
|
||||
@@ -188,5 +190,14 @@ abstract class FacadeProvider : IMoGoFunctionProvider, ILoginCallback {
|
||||
decorView.addView(statusBarView, statusBarLP)
|
||||
}
|
||||
}
|
||||
private fun removeStatusBar(){
|
||||
activity?.let {
|
||||
val decorView = it.window.decorView as? FrameLayout ?: return
|
||||
val statusBar = decorView.findViewWithTag<View>("status_bar")
|
||||
statusBar?.let {
|
||||
decorView.removeView(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user