Skip to content

Commit

Permalink
all: smoother surveys status (fixes #4757) (#4763)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
deeppp15 and dogi authored Nov 11, 2024
1 parent 4b1b69a commit 9031ef2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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 2090
versionName "0.20.90"
versionCode 2091
versionName "0.20.91"
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 @@ -152,8 +152,9 @@ class BellDashboardFragment : BaseDashboardFragment() {
private fun getSurveyTitlesFromSubmissions(submissions: List<RealmSubmission>, realm: Realm): List<String> {
val titles = mutableListOf<String>()
submissions.forEach { submission ->
val examId = submission.parentId?.split("@")?.firstOrNull() ?: ""
val exam = realm.where(RealmStepExam::class.java)
.equalTo("id", submission.parentId)
.equalTo("id", examId)
.findFirst()
exam?.name?.let { titles.add(it) }
}
Expand Down

0 comments on commit 9031ef2

Please sign in to comment.