Shadowsocks-android: 4.6.1 版新增的夜间模式有点小问题

Created on 4 Jul 2018  ·  9Comments  ·  Source: shadowsocks/shadowsocks-android

OS: LineageOS 14.1, 系统默认是日间模式

复现过程:

  1. 打开默认是:跟随系统,界面风格是日间模式。
  2. 切换到 开启,界面变为夜间模式,这时候再切换到 跟随系统 仍然显示成夜间模式。
enhancement third-party bug

All 9 comments

pixel 2xl Android o 复现

Max yv notifications@github.com 于 2018年7月4日周三 17:09写道:

OS: LineageOS 14.1, 系统默认是日间模式

复现过程:

  1. 打开默认是:跟随系统,界面风格是日间模式。
  2. 切换到 开启,界面变为夜间模式,这时候再切换到 跟随系统 仍然显示成夜间模式。


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/shadowsocks/shadowsocks-android/issues/1856, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJoPKSd_DzMjQ07l7QiFWQ4Jfdtf9Qawks5uDIZmgaJpZM4VCOWp
.

@onlymash Thoughts?

默认就是这样的,改为跟随系统,app不会去检查当前系统主题状态,除非你修改系统的主题的时候才会触发

这并不是什么问题,因为还有立即执行的开启关闭选项,选择你需要的状态,最后再选择跟随系统

如果非要立即显现,就要先检测一下系统的主题状态,再决定开启还是关闭 app 的夜间主题,最后才设置为跟随系统

由于系统版本众多,并不是所有系统都支持修改主题,不支持的系统就只能是日间模式。谷歌在设计 DayNight 主题的时候想必也考虑到了这一点,如果 app 主题是跟随系统,app 本身并不会去读取系统主题状态,因为每个系统都不一样,有的支持有的不支持,不好处理。所以是由系统告诉 App 主题改变了。还有一个选项是 Auto ,这个就简单了,这个选项是根据时间来设置的,所以修改后立即就生效了。

@onlymash I suggest remove "follow system" option and make "day" option as default.

I, on the other hand, think everything is just fine. 😅

Opened an issue at support library: https://issuetracker.google.com/issues/111345020

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mygod picture Mygod  ·  5Comments

theScrabi picture theScrabi  ·  5Comments

mcmxciv picture mcmxciv  ·  3Comments

KlansyMsniv picture KlansyMsniv  ·  3Comments

iKirby picture iKirby  ·  4Comments