-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Option for theme to follow power save mode #3986
Feature: Option for theme to follow power save mode #3986
Conversation
This property is used to determine if the theme can be light theme
Now it only takes the id and can return the System theme
…eload the activity if received
It now stores the theme from the preferences and not the simpleTheme
Since its previous placement apparently is a medium issue for the static code analyzer
@seelchen please write to me on telegram at vishal_nehra for bounty for your contributions :) |
@VishalNehra Thank you for the offer, but I will probably use these contributions for a university course which means that I am not allowed to accept payment for the work. But no need to worry, I want to continue working on the project after the course (although I might have less time then) 😉 |
Contact me anyways? I wanted to discuss something... |
Just sent you a message 😄 |
Description
This PR adds a new appearance configuration whether the theme should follow the battery saver mode of the device. The option only appears for themes that can be light.
A
BroadcastListener
is added toThemedActivity
to be able to respond when the battery saver mode is turned on or off.follow-battery-saver.mp4
option-hiding.mp4
Issue tracker
Fixes #2748
Automatic tests
Manual tests
Device:
Build tasks success
Successfully running following tasks on local:
./gradlew assembledebug
./gradlew spotlessCheck