• Miao-moe released this 2026-07-11 04:14:32 +08:00 | 0 commits to dev since this release

    横屏适配 v5

    关键修复 - 解决灰色页面

    之前 v3/v4 灰屏的根本原因:Compose UI 在 Configuration 变化时(旋转)会收到回调但被 configChanges 拦截后 LocalConfiguration 状态可能不一致,导致渲染异常。

    本次修改

    • MainActivity.smali: 添加 onConfigurationChanged 方法,调用 super 后立即 recreate() 强制重建 Activity
    • 旋转时整个 Compose 树重新建立,确保 UI 正确渲染
    • 资源补充:values-land/dimens.xml 添加横屏尺寸定义
    • versionCode: 12
    • versionName: v2-canary-12-5-pre-landscape-v5

    已有的 Manifest 配置

    • screenOrientation: fullSensor
    • configChanges: orientation|screenSize|screenLayout|smallestScreenSize|density|keyboardHidden|keyboard|navigation|uiMode
    • resizeableActivity: true
    Downloads
  • Miao-moe released this 2026-07-11 03:50:26 +08:00 | 0 commits to dev since this release

    横屏适配 v4

    修改内容

    • screenOrientation: portrait -> fullSensor
    • 添加 configChanges: orientation|screenSize|screenLayout|smallestScreenSize|density|keyboardHidden|keyboard|navigation|uiMode
      • 横竖屏切换时 Activity 不会重建,避免状态丢失
    • resizeableActivity: true
    • versionCode: 11
    • versionName: v2-canary-12-5-pre-landscape-v4

    说明

    QZMusic 是纯 Jetpack Compose 应用且代码已 R8 混淆,无法像原生 XML 布局那样简单添加 layout-land 横屏布局。此版本尽可能通过 Manifest 配置让应用在横竖屏下都能运行。

    安装

    需先卸载旧版本(签名不同)

    Downloads
  • Miao-moe released this 2026-07-11 03:35:06 +08:00 | 0 commits to dev since this release

    横屏适配 v3

    修复内容

    • 将 screenOrientation 从 fullSensor 改为 sensorLandscape
    • 避免 Activity 在横竖屏切换时反复重建导致的灰色页面/闪退问题
    • 应用打开时直接以横屏方式启动并锁定

    修改详情

    • screenOrientation: portrait(1) -> sensorLandscape(6)
    • versionCode: 8 -> 10
    • versionName: v2-canary-12-5-pre

    技术说明

    原应用为竖屏设计。fullSensor 允许任意方向旋转,但 Activity 重建时会触发 Compose UI 状态丢失。sensorLandscape 强制横屏且不会来回旋转,稳定性更好。

    安装

    需先卸载旧版本(签名不同)

    Downloads
  • Miao-moe released this 2026-07-11 03:16:46 +08:00 | 0 commits to dev since this release

    横屏适配 v2 - 修复黑屏

    修复内容

    本次使用二进制补丁方式,只修改AndroidManifest.xml中的两个整数值,保持原始APK所有其他文件完全不变(classes.dex、resources.arsc、native库等),从根本上解决了apktool重建导致的黑屏问题。

    修改详情

    • screenOrientation: portrait(1) -> fullSensor(10),支持横竖屏自由切换
    • versionCode: 8 -> 9
    • versionName: 保持 v2-canary-12-5-pre

    技术方案

    直接解析二进制AXML格式,精确定位screenOrientation属性的typed_value位置,修改其data字段。原始APK的516个文件中,只有AndroidManifest.xml被替换,其余文件字节完全一致。

    安装

    需先卸载旧版本(签名不同)

    Downloads
  • Miao-moe released this 2026-07-11 02:50:46 +08:00 | 0 commits to dev since this release

    横屏适配版本 v2

    基于 v2-canary-12-5-pre 版本,使用 apktool 2.10.0 正确反编译重建,修复黑屏问题。

    修改内容

    • AndroidManifest.xml: screenOrientation 从 portrait 改为 fullSensor(全传感器横竖屏自由切换)
    • 刘海屏适配: windowLayoutInDisplayCutoutMode 从 DEFAULT(1) 改为 SHORT_EDGES(2),横屏时内容延伸到刘海区域
    • 资源修复: 添加丢失的 srcCompat/actionModeCloseDrawable 属性声明
    • Edge-to-Edge: 应用已有完整的沉浸式边到边显示支持,横屏下自动适配

    安装注意

    • 此APK使用新签名证书,需先卸载旧版本再安装
    • 基于 Jetpack Compose 构建,UI布局自动适应横竖屏

    横屏布局说明

    由于应用采用 Jetpack Compose 构建(代码已R8混淆),布局通过 Compose Modifier 和 WindowInsets 自动适配。Edge-to-Edge 已在 MainActivity.onCreate 中启用 (setDecorFitsSystemWindows=false),横屏下导航栏和状态栏避让自动生效。

    Downloads