From 6ac6cfa81ee63300fb57318404b8def0164af144 Mon Sep 17 00:00:00 2001 From: jacquarg Date: Thu, 13 Jan 2022 09:42:34 +0100 Subject: Update some wodrings. --- .../e/privacycentralapp/features/dashboard/DashboardFragment.kt | 9 +++++++-- .../features/trackers/apptrackers/AppTrackersFragment.kt | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'app/src/main/java/foundation') 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 -- cgit v1.2.1