[Bug]: "Only show when screen off" blocks notification lighting when Android's "Wake screen for notifications" is enabled

未关闭
#1,899 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@sameerasw 已经在做这个了。

开始于 2026年11月24日。

评估

这个 Issue 还没有评估数据。

描述

bug
Bug Description

With "Only show when screen off" enabled, notification lighting never appears if Android's own "Wake screen for notifications" setting is on, even though the screen was off when the notification arrived.

It looks like Android wakes the screen first, so by the time Essentials checks the screen state, the screen is already on and the lighting is skipped. The option only works if Android's wake-screen setting is turned off, which means apps not selected for lighting no longer wake the screen at all.

Steps to Reproduce
  1. Enable Android's Settings > Display > Lock screen > "Wake screen for notifications".
  2. In Essentials, enable Notification lighting with "Only show when screen off" and Ambient display on.
  3. Turn the screen off.
  4. Receive a notification from a selected app.
  5. The screen wakes (via Android) but no lighting is shown.

Turning "Only show when screen off" off makes the lighting appear, but it then also shows while the phone is in use.

Expected Behavior

Lighting should appear if the screen was off (or the device was locked) when the notification arrived, regardless of Android waking the screen for that notification.

Screenshots

No response

Severity

Minor

Area

Display

Android Version

Android 17 (SDK37)

Device (OEM)

Pixel

Device

Pixel 9 Pro

App Version

21.3

Additional Context

Always-on display is off. Workaround is either disabling Android's "Wake screen for notifications" or disabling "Only show when screen off".

主要语言
Kotlin
星标
3.2k
派生
87
平均合并
1 天 19 小时
30 天内合并 PR
139

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

sameerasw/essentials 的其他 Issue

查看 sameerasw/essentials 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。