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

适配bug #136

Closed
weishl110 opened this issue Jun 9, 2021 · 4 comments
Closed

适配bug #136

weishl110 opened this issue Jun 9, 2021 · 4 comments

Comments

@weishl110
Copy link

PanelSwitchHelper:androidx-1.3.13
手机型号: LG K20
手机系统版本:android 9.0
问题:配合androidAutosize使用时,获取的statusbarheight小,DeviceRuntime中的getDeviceInfoByOrientation获取到的
navigationBarHeight、statusBarHeight、screenWithoutSystemUIHeight总和小于screenHeight

@YummyLau
Copy link
Collaborator

YummyLau commented Jun 9, 2021

@YummyLau
Copy link
Collaborator

YummyLau commented Jun 9, 2021

AutoSize的issue反馈了很多第三方库显示异常的问题,理论上第三方不会做针对autoSize的适配,应该按照autoSize给的处理方法处理。

@weishl110
Copy link
Author

好的,谢谢

@weishl110
Copy link
Author

请教一个问题 DeviceRuntime 中的getDeviceInfoByOrientation 返回的DeviceInfo 为什么需要每次都重新获取呢?有成员变量记录,如果不为空,直接返回会有其它问题吗?我这边这样做可以解决我这边的问题。如果这样做不知道您们是否有遇到其它的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants