AndroidUtilCode icon indicating copy to clipboard operation
AndroidUtilCode copied to clipboard

BarUtils中isNavBarVisible 在华为 p20 pro emui 11上 无论底部虚拟按键是否显示,返回的都是FALSE。

Open lgengsy opened this issue 4 years ago • 3 comments

描述 Bug

BarUtils中isNavBarVisible 在华为 p20 pro emui 11上 无论底部虚拟按键是否显示,返回的都是FALSE。

  • AndroidUtilCode 的版本:com.blankj:utilcodex:1.30.6
  • 出现 Bug 的设备型号:p20 pro emui 11
  • 设备的 Android 版本:Android 10

相关代码

lgengsy avatar Apr 30 '21 04:04 lgengsy

在红米K30上一样。系统可以设置使用手势还是虚拟导航栏,但是每次这个方法返回的结果,都是false

pbaiyy avatar Sep 24 '21 02:09 pbaiyy

@lgengsy 我大概知道问题了。你需要延迟调用这个方法,等页面初始化完成,判断才是正确的。

pbaiyy avatar Sep 24 '21 02:09 pbaiyy

@lgengsy 我大概知道问题了。你需要延迟调用这个方法,等页面初始化完成,判断才是正确的。

红米k20pro 版本号1.31.0 无论如何都返回的是false

ilovexy2tom avatar Apr 02 '22 10:04 ilovexy2tom