PanelSwitchHelper icon indicating copy to clipboard operation
PanelSwitchHelper copied to clipboard

Condor手机底部状态栏状态获取异常

Open liulianshanzhu opened this issue 4 years ago • 7 comments
trafficstars

Androidx版本:是 PanelSwitchHelper版本:v1.3.13 手机型号: Condor Allure m3 手机系统版本: Android 8.0 问题描述:当手机开启底部虚拟导航栏(非半透明),DisplayUtil.isNavBarVisible返回为false,导致PanelSwitchLayout布局排版错误,输入框被顶下去隐藏了。 image

liulianshanzhu avatar Apr 23 '21 02:04 liulianshanzhu

Condor设备目前没有在我们MTL机型库内部,目前还没有真机可以测试。库内部的判断导航栏可见逻辑目前是兼容市场绝大多数设备,对于 Condor 能否麻烦你调试下ROM内部如何判断Nav显示的逻辑。 对应的机型应该是指 https://www.condor.dz/en/nos-produits/produit/714-allure-m3-lite

YummyLau avatar May 06 '21 12:05 YummyLau

Androidx版本:是 PanelSwitchHelper版本:v1.3.13 手机型号: 一加8、pixel4、pixel5 手机系统版本: Android 1 问题描述:相同问题

originlan avatar May 27 '21 09:05 originlan

Androidx版本:是 PanelSwitchHelper版本:v1.3.13 手机型号: 一加8、pixel4、pixel5 手机系统版本: Android 1 问题描述:相同问题

收到,已经申请测试手机,明天测试下。

YummyLau avatar May 27 '21 12:05 YummyLau

一加8 windowSoftInputMode = 19 currentPanelSwitchLayoutVisible = true screenHeight = 2400 contentHeight = 2161 isFullScreen = false isNavigationBarShown = true deviceStatusBarH = 104 deviceNavigationBarH = 135 systemInset = left(104) top(0) right(0) bottom(135) inset = left(0) top(104) right(0) bottom(135) currentSystemInfo = statusBarH : 104, navigationBarH : 135 全面屏手势虚拟栏H : 0 currentSystemH = 239 minLimitCloseKeyboardH = 135 minLimitOpenKeyboardH = 300 lastKeyboardH = 0 currentKeyboardInfo = keyboardH : 0, realKeyboardH : 0, isShown : false

YummyLau avatar May 28 '21 03:05 YummyLau

pixel 4 windowSoftInputMode = 19 currentPanelSwitchLayoutVisible = true screenHeight = 2340 contentHeight = 1275 isFullScreen = false isNavigationBarShown = true deviceStatusBarH = 136 deviceNavigationBarH = 132 systemInset = left(136) top(0) right(0) bottom(929) inset = left(0) top(136) right(0) bottom(132) currentSystemInfo = statusBarH : 136, navigationBarH : 132 全面屏手势虚拟栏H : 0 currentSystemH = 268 minLimitCloseKeyboardH = 132 minLimitOpenKeyboardH = 300 lastKeyboardH = 797 currentKeyboardInfo = keyboardH : 797, realKeyboardH : 797, isShown : true

YummyLau avatar May 28 '21 03:05 YummyLau

Androidx版本:是 PanelSwitchHelper版本:v1.3.13 手机型号: 一加8、pixel4、pixel5 手机系统版本: Android 1 问题描述:相同问题

两个都是Android11,1加8全屏手势/导航栏模式,pixel 导航栏 兼容测试都能通过。麻烦你提供下你的场景更细节的使用及代码调用逻辑。

YummyLau avatar May 28 '21 03:05 YummyLau

在 activity 全屏模式隐藏状态栏导航栏后 WindowInsetsController.hide(WindowInsetsCompat.Type.systemBars()); 打开一个使用本项目的dialogfragment ,然后会出现相同问题

手机型号: 一加7t 手机系统版本: Android 11

PanelSwitchHelper > Builder 这部分我觉的最好优先使用 dialogFragment.dialog.window而不是dialogFragment.activity?.window,要不在activity 和 fragmentdialog 状态栏显隐藏不一致时就会判断异常了

constructor(dialogFragment: DialogFragment) : this(dialogFragment.activity?.window, dialogFragment.view)

litao0621 avatar May 28 '21 11:05 litao0621