From 44714bd57f06ca08c082c4913710f4be5130f140 Mon Sep 17 00:00:00 2001 From: Jean-BaptisteC Date: Tue, 9 Jan 2024 20:10:39 +0100 Subject: [PATCH 1/2] Fix back button not working --- app/src/main/res/layout/fragment_tracker_detail.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/res/layout/fragment_tracker_detail.xml b/app/src/main/res/layout/fragment_tracker_detail.xml index dd2ed4b3..70f9c914 100644 --- a/app/src/main/res/layout/fragment_tracker_detail.xml +++ b/app/src/main/res/layout/fragment_tracker_detail.xml @@ -21,8 +21,7 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" - app:navigationIcon="@drawable/ic_back" - app:navigationContentDescription="@string/back_button"/> + app:navigationIcon="@drawable/ic_back" /> Date: Tue, 9 Jan 2024 20:11:25 +0100 Subject: [PATCH 2/2] Show as a title of screen the number of trackers --- .../exodusprivacy/fragments/trackers/TrackersFragment.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/fragments/trackers/TrackersFragment.kt b/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/fragments/trackers/TrackersFragment.kt index 42b7bc06..2986218d 100644 --- a/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/fragments/trackers/TrackersFragment.kt +++ b/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/fragments/trackers/TrackersFragment.kt @@ -62,9 +62,11 @@ class TrackersFragment : Fragment(R.layout.fragment_trackers) { binding.swipeRefreshLayout.visibility = View.VISIBLE binding.shimmerLayout.visibility = View.GONE trackersRVAdapter.submitList(sortedList) + binding.toolbarTrackers.title = trackersRVAdapter.itemCount.toString() + " " + getString(R.string.trackers) } else { binding.swipeRefreshLayout.visibility = View.VISIBLE binding.shimmerLayout.visibility = View.VISIBLE + binding.toolbarTrackers.title = getString(R.string.trackers) } }