Skip to content

Commit

Permalink
mylife: smoother mysubmissions search (fixes #5023) (#5057)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <dogi@users.noreply.github.com>
  • Loading branch information
deeppp15 and dogi authored Jan 17, 2025
1 parent a4b3028 commit 2e7dc13
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "org.ole.planet.myplanet"
minSdkVersion 26
targetSdkVersion 34
versionCode 2216
versionName "0.22.16"
versionCode 2217
versionName "0.22.17"
ndkVersion '21.3.6528147'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,12 @@ class MySubmissionFragment : Fragment(), CompoundButton.OnCheckedChangeListener

val adapter = AdapterMySubmission(requireActivity(), submissions, exams)
val itemCount = adapter.itemCount
showNoData(fragmentMySubmissionBinding.tvMessage, itemCount, "submission")

if (itemCount == 0) {
fragmentMySubmissionBinding.llSearch.visibility = View.GONE
fragmentMySubmissionBinding.title.visibility = View.GONE
if(s.isNullOrEmpty()){
showNoData(fragmentMySubmissionBinding.tvMessage, itemCount, "submission")
if (itemCount == 0) {
fragmentMySubmissionBinding.llSearch.visibility = View.GONE
fragmentMySubmissionBinding.title.visibility = View.GONE
}
}
adapter.setmRealm(mRealm)
adapter.setType(type)
Expand Down

0 comments on commit 2e7dc13

Please sign in to comment.