Skip to content
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

Launch Android Settings to re-enable battery optimization #424

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

chenxiaolong
Copy link
Owner

Currently, BCR will just gray out the Disable battery optimization option after it is enabled because Android does not provide a way for apps to re-enable optimizations.

This isn't very user-friendly, so this commit updates the option to never be grayed out, but instead, take the user to the appropriate page in Android's Settings.

Fixes: #422

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Currently, BCR will just gray out the `Disable battery optimization`
option after it is enabled because Android does not provide a way for
apps to re-enable optimizations.

This isn't very user-friendly, so this commit updates the option to
never be grayed out, but instead, take the user to the appropriate page
in Android's Settings.

Fixes: #422

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong chenxiaolong self-assigned this Sep 20, 2023
@chenxiaolong chenxiaolong merged commit c12e0ac into master Sep 20, 2023
@chenxiaolong chenxiaolong deleted the battery branch September 20, 2023 23:01
chenxiaolong added a commit that referenced this pull request Sep 20, 2023
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
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.

Disable Disable battery optimization
1 participant