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

The ability to know if manufacture battery optimization is set to "ask first" #11

Open
mayurbiw opened this issue Nov 9, 2023 · 0 comments

Comments

@mayurbiw
Copy link

mayurbiw commented Nov 9, 2023

bool? isManufacturerBatteryOptimizationDisabled = await DisableBatteryOptimization.isManufacturerBatteryOptimizationDisabled;

The above line returns either true or false. Is there a way to know if manufacture battery optimization is set to "ask first"?

In this scenario battery optimization is indeed off, so the above function should return True, but it returns False.

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

No branches or pull requests

1 participant