diff options
author | jacquarg <guillaume.jacquart@hoodbrains.com> | 2022-01-13 09:42:34 +0100 |
---|---|---|
committer | jacquarg <guillaume.jacquart@hoodbrains.com> | 2022-01-13 09:42:34 +0100 |
commit | 6ac6cfa81ee63300fb57318404b8def0164af144 (patch) | |
tree | 1561b07687c435465ad4316840131ad537da28d2 /app/src/main/java/foundation/e/privacycentralapp | |
parent | 10564e2605d03a23fcc1b3728502bd5ffd77cc74 (diff) |
Update some wodrings.
Diffstat (limited to 'app/src/main/java/foundation/e/privacycentralapp')
2 files changed, 9 insertions, 2 deletions
diff --git a/app/src/main/java/foundation/e/privacycentralapp/features/dashboard/DashboardFragment.kt b/app/src/main/java/foundation/e/privacycentralapp/features/dashboard/DashboardFragment.kt index 142ab0c..ae7bbf0 100644 --- a/app/src/main/java/foundation/e/privacycentralapp/features/dashboard/DashboardFragment.kt +++ b/app/src/main/java/foundation/e/privacycentralapp/features/dashboard/DashboardFragment.kt @@ -129,8 +129,13 @@ class DashboardFragment : override fun render(state: State) { binding.stateLabel.text = getString( - if (state.isQuickPrivacyEnabled) R.string.dashboard_state_label_on - else R.string.dashboard_state_label_off + if (state.isQuickPrivacyEnabled) R.string.dashboard_state_title_on + else R.string.dashboard_state_title_off + ) + + binding.stateSubtitle.text = getString( + if (state.isQuickPrivacyEnabled) R.string.dashboard_state_subtitle_on + else R.string.dashboard_state_subtitle_off ) binding.togglePrivacyCentral.setImageResource( diff --git a/app/src/main/java/foundation/e/privacycentralapp/features/trackers/apptrackers/AppTrackersFragment.kt b/app/src/main/java/foundation/e/privacycentralapp/features/trackers/apptrackers/AppTrackersFragment.kt index 61f5b58..6b57719 100644 --- a/app/src/main/java/foundation/e/privacycentralapp/features/trackers/apptrackers/AppTrackersFragment.kt +++ b/app/src/main/java/foundation/e/privacycentralapp/features/trackers/apptrackers/AppTrackersFragment.kt @@ -114,6 +114,8 @@ class AppTrackersFragment : override fun render(state: State) { binding.blockAllToggle.isChecked = state.isBlockingActivated + binding.trackersListTitle.isVisible = state.isBlockingActivated + val trackersStatus = state.getTrackersStatus() if (!trackersStatus.isNullOrEmpty()) { binding.trackers.isVisible = true |