From cd44ec5163bbb4903fe80d7a535fdd51c1ff92e3 Mon Sep 17 00:00:00 2001 From: Deep Vora <70479785+deeppp15@users.noreply.github.com> Date: Mon, 2 Dec 2024 14:22:29 -0500 Subject: [PATCH] teams: smoother last member (fixes #4814) (#4816) Co-authored-by: dogi --- app/build.gradle | 4 ++-- .../planet/myplanet/ui/team/teamMember/AdapterJoinedMember.kt | 2 +- app/src/main/res/values/strings.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 33ec92ab67..d7a1756297 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { applicationId "org.ole.planet.myplanet" minSdkVersion 26 targetSdkVersion 34 - versionCode 2113 - versionName "0.21.13" + versionCode 2114 + versionName "0.21.14" ndkVersion '21.3.6528147' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true diff --git a/app/src/main/java/org/ole/planet/myplanet/ui/team/teamMember/AdapterJoinedMember.kt b/app/src/main/java/org/ole/planet/myplanet/ui/team/teamMember/AdapterJoinedMember.kt index 0ca7594c59..3fec35d920 100644 --- a/app/src/main/java/org/ole/planet/myplanet/ui/team/teamMember/AdapterJoinedMember.kt +++ b/app/src/main/java/org/ole/planet/myplanet/ui/team/teamMember/AdapterJoinedMember.kt @@ -79,7 +79,7 @@ class AdapterJoinedMember(private val context: Context, private val list: List, isLoggedInUserTeamLeader: Boolean ) { - if (isLoggedInUserTeamLeader) { + if (isLoggedInUserTeamLeader && list.size>1) { rowJoinedUserBinding.icMore.visibility = View.VISIBLE rowJoinedUserBinding.icMore.setOnClickListener { val builder = AlertDialog.Builder(context, R.style.AlertDialogTheme) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8e7803a437..235f83249e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -180,7 +180,7 @@ Showing reply of: Open Date mySurvey - User couldnot be removed + User could not be removed No Team members present to assign tasks No member selected. Please try again