Skip to content
Commit 3f5ad738 authored by Winson's avatar Winson
Browse files

Remove target Q check for transient night mode in UiModeManager

The target SDK check I originally added was broken since it used
the wrong UID vs User ID type.

While diagnosing, a separate concern came up about how to handle
different apps' expectations for how night mode should
work.

Checking target is weird because the system/other apps could
also be enabling car mode, and it's unclear which target level
would take precedence if multiple apps requested car mode be
enabled.

Rather than resolving that, this makes night mode transient in Q,
regardless of target version. The use cases in the wild are
probably small, and because ag/5074744 locked night mode by
default, most apps won't be affected by this behavior.

Bug: 117346726

Test: atest UiModeManagerTest
Test: manual car/night mode test app

Change-Id: If43c2f54b93e04918eeed00d8d50536bfb083630
parent 5a95250b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment