Skip to content

Commit

Permalink
mylife: smoother mysubmission (fixes #5091) (#5126)
Browse files Browse the repository at this point in the history
Co-authored-by: Gideon Okuro <gideonollonde@gmail.com>
Co-authored-by: dogi <dogi@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 29, 2025
1 parent 3021dd3 commit 3649a36
Show file tree
Hide file tree
Showing 3 changed files with 8 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 2251
versionName "0.22.51"
versionCode 2252
versionName "0.22.52"
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 @@ -72,6 +72,7 @@ class MySubmissionFragment : Fragment(), CompoundButton.OnCheckedChangeListener
} else {
fragmentMySubmissionBinding.rbSurvey.visibility = View.GONE
fragmentMySubmissionBinding.rbExam.visibility = View.GONE
fragmentMySubmissionBinding.rgSubmission.visibility = View.GONE
}
}

Expand Down Expand Up @@ -108,9 +109,12 @@ class MySubmissionFragment : Fragment(), CompoundButton.OnCheckedChangeListener
if (s.isEmpty()) {
fragmentMySubmissionBinding.llSearch.visibility = View.VISIBLE
fragmentMySubmissionBinding.title.visibility = View.VISIBLE
if (fragmentMySubmissionBinding.rbSurvey.isChecked) {
if (fragmentMySubmissionBinding.rbSurvey.isChecked || type == "survey") {
fragmentMySubmissionBinding.tvFragmentInfo.text = "mySurveys"
showNoData(fragmentMySubmissionBinding.tvMessage, itemCount, "survey_submission")

} else {
fragmentMySubmissionBinding.tvFragmentInfo.text = "mySubmissions"
showNoData(fragmentMySubmissionBinding.tvMessage, itemCount, "exam_submission")
}

Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/fragment_my_submission.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
android:padding="10dp">

<RadioGroup
android:id="@+id/rg_submission"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/submission_toggle"
Expand Down

0 comments on commit 3649a36

Please sign in to comment.