Skip to content

Commit

Permalink
Show as a title of screen the number of trackers
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-BaptisteC committed Jan 14, 2024
1 parent c426a97 commit 05893d0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 05893d0

Please sign in to comment.