From b3742b4f30d26774ffaa0e64b60114f616db1542 Mon Sep 17 00:00:00 2001 From: Gideon Okuro Date: Wed, 3 Jul 2024 13:34:37 +0300 Subject: [PATCH] cleanup --- .../planet/myplanet/ui/team/MyTeamsDetailFragment.kt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/org/ole/planet/myplanet/ui/team/MyTeamsDetailFragment.kt b/app/src/main/java/org/ole/planet/myplanet/ui/team/MyTeamsDetailFragment.kt index 83737c4a39..c5e010c6b6 100644 --- a/app/src/main/java/org/ole/planet/myplanet/ui/team/MyTeamsDetailFragment.kt +++ b/app/src/main/java/org/ole/planet/myplanet/ui/team/MyTeamsDetailFragment.kt @@ -218,14 +218,12 @@ class MyTeamsDetailFragment : BaseNewsFragment() { private fun setCourseList(tab: TabLayout.Tab, courses: RealmResults) { hideRv(tab, String.format(getString(R.string.courses_colon) + " (%s)", courses.size)) - listContent.adapter = - ArrayAdapter(requireActivity(), android.R.layout.simple_list_item_1, courses) - listContent.onItemClickListener = - AdapterView.OnItemClickListener { _: AdapterView<*>?, _: View?, i: Int, _: Long -> - if (homeItemClickListener != null) { - openFragment(courses[i]?.courseId, TakeCourseFragment()) - } + listContent.adapter = ArrayAdapter(requireActivity(), android.R.layout.simple_list_item_1, courses) + listContent.onItemClickListener = AdapterView.OnItemClickListener { _: AdapterView<*>?, _: View?, i: Int, _: Long -> + if (homeItemClickListener != null) { + openFragment(courses[i]?.courseId, TakeCourseFragment()) } + } } private fun hideRv(tab: TabLayout.Tab, s: String) {