Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
liulianshanzhu opened this issue Apr 23, 2021 · 7 comments
Open

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

liulianshanzhu opened this issue Apr 23, 2021 · 7 comments
Labels
机型适配 华为/魅族/vivo/oppo等系统UI定制问题

Comments

@liulianshanzhu
Copy link

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

@YummyLau
Copy link
Collaborator

YummyLau commented May 6, 2021

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

@YummyLau YummyLau added the 机型适配 华为/魅族/vivo/oppo等系统UI定制问题 label May 7, 2021
@originlan
Copy link

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

@YummyLau
Copy link
Collaborator

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

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

@YummyLau
Copy link
Collaborator

一加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
Copy link
Collaborator

YummyLau commented May 28, 2021

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
Copy link
Collaborator

YummyLau commented May 28, 2021

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

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

@litao0621
Copy link

litao0621 commented May 28, 2021

在 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
机型适配 华为/魅族/vivo/oppo等系统UI定制问题
Projects
None yet
Development

No branches or pull requests

4 participants