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

设置resizeableactivity=false并且页面横屏在小米上不兼容 #461

Open
6 tasks done
morningcc opened this issue May 17, 2024 · 1 comment
Open
6 tasks done

Comments

@morningcc
Copy link

Environment

  • Autosize Version: 1.2.1
  • Target Android Version: android 13
  • MIUI版本: MIUI Pad 14.0.7
  • Device Model: xiaomi pad 5
  • Device Resolution: 2560px * 1600px
  • Design Size On AndroidManifest: 360dp * 640dp

Bug Description:

在小米平板上必现的bug, 跑示例工程就可复现
bug现象: 在小米平板桌面为竖屏状态下, 打开横屏的应用, 然后给应用切换到后台, 再重新打开, 应用显示区域变小, 后边有视频
bug复现条件:
1, 小米平板方向锁定功能关闭
2, 小米平板桌面切换为竖屏显示状态
3, 下载示例工程, 在androidManifest.xml给application添加android:resizeableActivity="false"属性(不允许分屏)
4, 在androidManifest.xml给MainActivity添加android:screenOrientation="landscape"属性
5, 运行工程
6, 保持小米桌面为竖屏状态, 打开app
7, 把app切换到后台
8, 重新打开app
9, app显示区域只有左上角一块

Log:

log

Screenshot

@jayjd
Copy link

jayjd commented Jul 16, 2024

我也遇到这个问题了 不知道怎么解决
我这边还出现一个问题 竖屏模式下 启动新页面是横屏 返回 上一个界面的文字就会统一放大 必须重新进入app 还正常

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