Skip to content

Enable "System Default" Auto Night Mode for all Android versions#1928

Open
Ephemera42 wants to merge 1 commit intoDrKLO:masterfrom
Ephemera42:nightmode
Open

Enable "System Default" Auto Night Mode for all Android versions#1928
Ephemera42 wants to merge 1 commit intoDrKLO:masterfrom
Ephemera42:nightmode

Conversation

@Ephemera42
Copy link
Copy Markdown

Since night mode support was introduced as early as API 8, the "System Default" option can function correctly on older Android versions and should not be restricted to Android 10+ devices.

Preview.mp4

Previously, the "System Default" option for Auto Night Mode was
restricted to Android 10 (SDK 29) and above. This commit removes
the SDK version check in both the configuration logic and the UI.

* In Theme.java: Sets the default `selectedAutoNightType` to
  `AUTO_NIGHT_TYPE_SYSTEM` regardless of the OS version.
* In ThemeActivity.java: Unhides the "System Default" row for
  devices running Android 9 and older.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant