-
Notifications
You must be signed in to change notification settings - Fork 535
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
Fix #377: Control submit button #418
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.
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.
PTAL on the comment
Could we address this via data binding and the top level view model, instead? See https://github.com/oppia/oppia-android/blob/develop/app/src/main/java/org/oppia/app/player/state/StateViewModel.kt#L33 We ought to not have classes directly depend their parents. We could use listeners to indirect this, but there may be a cleaner reactive solution possible. |
import org.oppia.app.player.state.answerhandling.InteractionAnswerHandler | ||
import org.oppia.app.player.state.answerhandling.InteractionAnswerReceiver | ||
|
||
/** ViewModel for multiple or item-selection input choice list. */ | ||
class SelectionInteractionViewModel( | ||
val explorationId: String, interaction: Interaction, private val interactionAnswerReceiver: InteractionAnswerReceiver, | ||
existingAnswer: InteractionObject?, val isReadOnly: Boolean | ||
existingAnswer: InteractionObject?, val isReadOnly: Boolean, @Suppress("UNUSED_PARAMETER") stateFragmentPresenter: StateFragmentPresenter |
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.
use cmd+option+L to wrap this.
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.
Please update this code with latest develop as there are too many changes.
Closing this PR as this will be done once |
Explanation
This PR controls the styling of "Submit " button.
Start
button ofTopicTrainTab
)Also, I have found one issue while working on this PR which has been mentioned in #417
Checklist