Added location state in tracing card screen (EXPOSUREAPP-1757) (#879)
* Implemented state check for location
* formatting
* removed duplicate manifest item
* Update ConnectivityHelper.kt
* Update ConnectivityHelper.kt
* Added location type to TracingStatusHelper
Added location type to TracingStatusHelper as well as relevant String values
* added location paramater to TracingStatusHelper utilizing methods
added location paramater to TracingStatusHelper utilizing methods.
Implementation including location not yet included.
* Finalized TracingStatusHelper to include the location value
Finalized TracingStatusHelper to include the location value to be returned to Formatters in FormatterSettingsHelper
* formatting
* Update FormatterSettingsHelper.kt
* Update FormatterSettingsHelper.kt
* Added home screen implementation for location state
- Added logic to formatters adjust home screen tracing state based on location setting.
- Adjusted existing state tests to include location boolean value and results.
- Added location inactive icon.
* Update FormatterSettingsHelper.kt
* test changes to match formatter/helper changes
* Create ic_illustration_location_off.xml
* Added location state in tracing card screen
- Edited FormatterSettingsHelper.kt to include a visibility formatter based on location state.
- Edited SettingsTracingFragment.kt included a listener for location settings button.
- Added illustration for location missing in tracing screen.
- Edited fragment_settings_tracing.xml so that if location isn't on, a card explaining it should be turned on appears.
- Edited strings values to include required strings for card.
* Update strings.xml
* Updated strings for translation, keeping only confirmed DE and blank base string values
Updated strings for translation, keeping only confirmed DE and blank base string values
Co-authored-by:
Philipp Woessner <64482866+pwoessner@users.noreply.github.com>
Showing
- Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/settings/SettingsTracingFragment.kt 4 additions, 0 deletions.../rki/coronawarnapp/ui/settings/SettingsTracingFragment.kt
- Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/formatter/FormatterSettingsHelper.kt 28 additions, 0 deletions...i/coronawarnapp/util/formatter/FormatterSettingsHelper.kt
- Corona-Warn-App/src/main/res/drawable/ic_settings_illustration_location_off.xml 266 additions, 0 deletions...in/res/drawable/ic_settings_illustration_location_off.xml
- Corona-Warn-App/src/main/res/layout/fragment_settings_tracing.xml 14 additions, 0 deletions...arn-App/src/main/res/layout/fragment_settings_tracing.xml
- Corona-Warn-App/src/main/res/values-de/strings.xml 8 additions, 0 deletionsCorona-Warn-App/src/main/res/values-de/strings.xml
- Corona-Warn-App/src/main/res/values/strings.xml 10 additions, 1 deletionCorona-Warn-App/src/main/res/values/strings.xml
Loading
Please register or sign in to comment