[6.4.0]
[statusbar 做判断、taxi乘客屏加载失败]
This commit is contained in:
@@ -167,7 +167,7 @@ abstract class FacadeProvider : IMoGoFunctionProvider, ILoginCallback {
|
||||
}
|
||||
|
||||
private fun injectStatusBar() {
|
||||
activity?.let {
|
||||
activity?.let { it ->
|
||||
val decorView = it.window.decorView as? FrameLayout ?: return
|
||||
val contentView =
|
||||
(decorView.findViewById<View>(android.R.id.content) as? ViewGroup)?.getChildAt(0)
|
||||
@@ -184,6 +184,11 @@ abstract class FacadeProvider : IMoGoFunctionProvider, ILoginCallback {
|
||||
)
|
||||
statusBarLP.topMargin = 0
|
||||
statusBarLP.gravity = Gravity.TOP
|
||||
statusBar?.let {view->
|
||||
if(view.isAttachedToWindow){
|
||||
return
|
||||
}
|
||||
}
|
||||
decorView.addView(statusBarView, statusBarLP)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user