[状态栏]由单排改成双排
[状态栏]由单排改成双排 [状态栏]xxxx [状态栏]xxxx
This commit is contained in:
@@ -150,27 +150,18 @@ object CallerDevaToolsManager {
|
||||
/**
|
||||
* 展示状态栏
|
||||
*/
|
||||
fun showStatusBar(ctx: Context, anchor: View) {
|
||||
fun showStatusBar(ctx: Context, container: ViewGroup) {
|
||||
if (!AppIdentityModeUtils.isPassenger(FunctionBuildConfig.appIdentityMode)) {
|
||||
if (anchor.isLaidOut) {
|
||||
devaToolsProviderApi?.showStatusBar(ctx, anchor)
|
||||
} else {
|
||||
anchor.viewTreeObserver.addOnGlobalLayoutListener(object : ViewTreeObserver.OnGlobalLayoutListener {
|
||||
override fun onGlobalLayout() {
|
||||
devaToolsProviderApi?.showStatusBar(ctx, anchor)
|
||||
anchor.viewTreeObserver.removeOnGlobalLayoutListener(this)
|
||||
}
|
||||
})
|
||||
}
|
||||
devaToolsProviderApi?.showStatusBar(ctx, container)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 隐藏状态栏
|
||||
*/
|
||||
fun hideStatusBar() {
|
||||
fun hideStatusBar(container: ViewGroup) {
|
||||
if (!AppIdentityModeUtils.isPassenger(FunctionBuildConfig.appIdentityMode)) {
|
||||
devaToolsProviderApi?.hideStatusBar()
|
||||
devaToolsProviderApi?.hideStatusBar(container)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user