From 1e26d1d311f9900540f5f72e2793f11786e7f4f0 Mon Sep 17 00:00:00 2001 From: Jean-BaptisteC Date: Tue, 9 Jan 2024 20:11:25 +0100 Subject: [PATCH] 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) } }