summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/foundation/e/privacycentralapp/features/dashboard/DashboardFragment.kt9
-rw-r--r--app/src/main/java/foundation/e/privacycentralapp/features/trackers/apptrackers/AppTrackersFragment.kt2
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