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

screenWidthDp、screenHeightDp设置和还原没有考虑横竖屏切换情况吗? #463

Open
5 tasks done
start141 opened this issue Sep 2, 2024 · 0 comments
Open
5 tasks done

Comments

@start141
Copy link

start141 commented Sep 2, 2024

Environment

  • Autosize Version: v1.2.1
  • Target Android Version: 无关
  • Device Model: 无关
  • Device Resolution: 无关
  • Design Size On AndroidManifest: 无关

Bug Description:

screenWidthDp和screenHeightDp的大小是会随着横竖屏切换时来回变化的,而阅读AndroidAutoSize源码发现:
1、autoConvertDensity好像没有在横竖屏切换onConfigurationChanged时更新screenWidthDp和screenHeightDp。
2、cancelAdapt时好像也没有根据横竖屏设置不同的screenWidthDp和screenHeightDp值。(使用的是固定的InitScreenWidthDp、InitScreenHeightDp)

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

1 participant