Skip to content
Snippets Groups Projects
Unverified Commit 4f75b386 authored by Oliver Zimmerman's avatar Oliver Zimmerman Committed by GitHub
Browse files

Fix - Adjusted isBackgroundJobEnabled to consider battery optimization (#951)


* Check for battery saver mode

added a check for battery saver mode in connectivity helper
created sample dialog to appear if battery saver is enabled - string values to be confirmed.

* Implemented the energy saving warning dialog in main screen

- Created a Dialog in MainFragment that shows once (shared pref boolean check), and if energy saver mode is enabled
- Created a shared pref in local data to store if the energy saving warning has been shown
- Added strings required for dialog (Only DE confirmed)
- Added a method in ExternalActionHelper that will open energy saver settings
- Adjusted existing dialog in onboarding process

* Change from battery saver check to battery optimized check

- Change from battery saver check to battery optimized check
- Added second dialog explaining manual checks

* Update strings.xml

Text changes as provided on JIRA ticket

* Dialog will now only appear once in tracing settings.

* removed unused imports

* Update SettingsTracingFragment.kt

* Update SettingsTracingFragment.kt

* code formatting

* formatting

* Update ConnectivityHelper.kt

* Update SettingsTracingFragment.kt

* Lint and string file changes

1. Small corrections of brackets and lines
2. Keeping order of the elements in string files uniform across languages

* Update strings.xml

* Update strings.xml

* Update ConnectivityHelper.kt

Co-authored-by: default avatarRituraj Sambherao <git.rituraj.sambherao@gmail.com>
parent 2d0a661c
No related branches found
No related tags found
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