as9567585
V2EX  ›  Android

搞 android 的朋友,帮忙看看这是不是 MIUI 的 bug

  •  
  •   as9567585 · Dec 20, 2022 · 16138 views
    This topic created in 1417 days ago, the information mentioned may be changed or developed.

    我不是写 android ,最近在写一些 flutter ,跟踪代码跟 android 里发现的

    一开始发现是在我的备用机小米 9 上有问题,google 的虚拟机上 ok

    后来在 wetest 上测试,也是小米的 android11 才有问题,其他 android 都是 ok 的

    想想应该是 MIUI 的锅了,哎,这个在 futter 里还不好弄,恶心

    https://web.vip.miui.com/page/info/mio/mio/detail?postId=39033607&app_version=dev.20051

    Supplement 1  ·  Dec 20, 2022
    简单来说就是图中的 true/false 对状态栏没有影响,这应该吗?

    15 replies  •  2022-12-20 16:24:31 +08:00
    learningman
    learningman
    Dec 20, 2022
    1
    这玩意儿无效可太正常了
    android:windowLightStatusBar
    android:windowLightNavigationBar
    这两玩意儿可能会影响
    decorView 的 getSystemUiVisibility() SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
    可能会影响

    推荐直接 setDecorFitsSystemWindows 然后开画(
    learningman
    learningman
    Dec 20, 2022
    2
    不过你说谷歌正常其他的不正常我没碰到过,我这个炸都是 miui12.5 ,三星的 OneUI4 和虚拟机里那个一起炸的
    Helsing
    Helsing
    Dec 20, 2022 via iPhone
    3
    图太糊了,没法看

    适配国内的 Rom 有的地方是要做针对性适配的
    Dkngit
    Dkngit
    Dec 20, 2022
    4
    说图片糊的,图片可以点开看
    superedlimited
    superedlimited
    Dec 20, 2022
    5
    If true, changes the foreground color of the status bars to light so that the items on the bar can be read clearly. If false, reverts to the default appearance.
    This method has no effect on API < 23.
    luckyc
    luckyc
    Dec 20, 2022
    6
    既然是魔改, 人家不给你设置浅色导航栏和任务栏很正常, 何必纠结这个呢?
    我司也魔改 aosp,
    比如你想隐藏我状态栏是隐藏不掉的.
    Musong
    Musong
    Dec 20, 2022
    7
    296727
    296727
    Dec 20, 2022
    8
    安卓有兼容问题不是很正常,你去试试华为,会更酸爽
    as9567585
    as9567585
    OP
    Dec 20, 2022
    9
    @learningman @l4ever 搞 android 真太难受了,这些个兼容,堪比上一代 web 需要兼容 ie
    as9567585
    as9567585
    OP
    Dec 20, 2022
    10
    @learningman 对对 我这个也是 miui 12.5 ,我看论坛好用户都反映 miui12.5 状态栏各种 bug
    as9567585
    as9567585
    OP
    Dec 20, 2022
    11
    @Musong 这个是 miui 12.5 上发现的,应该没有关系的
    learningman
    learningman
    Dec 20, 2022
    12
    @as9567585 #10 那不知道,我自己的设备是没啥问题的,Mi 10S
    HangoX
    HangoX
    Dec 20, 2022
    13
    怀疑是 MIUI 问题的,MIUI 有个开关,叫做 MIUI 优化,关闭这个之后会变成正常的 Android 系统,如果这个没问题,那就是 miui 问题了
    as9567585
    as9567585
    OP
    Dec 20, 2022
    14
    @HangoX 求这个开关位置, 没有找到
    ghell
    ghell
    Dec 20, 2022 via Android❤️1
    15
    @as9567585 开发者选项-启用 MIUI 优化
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2160 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 13:34 · PVG 21:34 · LAX 05:34 · JFK 08:34
    ♥ Do have faith in what you're doing.