-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mySubmission: smoother ui (fixes #5091) #5095
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Avinash, the mysubmission tab no longer shows the survey submission.
@Okuro3499 Wouldn't this create a merge conflict then? |
showHideRadioButton() | ||
} | ||
|
||
private fun showHideRadioButton() { | ||
if (type != "survey") { | ||
fragmentMySubmissionBinding.rbExam.isChecked = true | ||
fragmentMySubmissionBinding.rbExam.setOnCheckedChangeListener(this) | ||
fragmentMySubmissionBinding.rbSurvey.setOnCheckedChangeListener(this) | ||
} else { | ||
fragmentMySubmissionBinding.rbSurvey.visibility = View.GONE | ||
fragmentMySubmissionBinding.rbExam.visibility = View.GONE | ||
} | ||
} | ||
|
||
override fun onCheckedChanged(compoundButton: CompoundButton, b: Boolean) { | ||
type = if (fragmentMySubmissionBinding.rbSurvey.isChecked) { | ||
"survey_submission" | ||
} else { | ||
"exam" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mysubmission fragment is reused by mySurvey removing this would cause anotther bug
fixes #5091