Skip to content

Commit

Permalink
test logs
Browse files Browse the repository at this point in the history
  • Loading branch information
subhajitxyz committed Jan 12, 2025
1 parent 46f3dc5 commit df4a41e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class StateFragmentPresenter @Inject constructor(
}
}
//subha hint approach 3
var comeFromHint = false
//var comeFromHint = false

private fun processEphemeralState(ephemeralState: EphemeralState) {
explorationCheckpointState = ephemeralState.checkpointState
Expand Down Expand Up @@ -378,16 +378,20 @@ class StateFragmentPresenter @Inject constructor(
// }

//approach 3
if(comeFromHint) {
//do nothing
comeFromHint = false
} else {
stateViewModel.itemList.clear()
stateViewModel.itemList += dataPair.first
stateViewModel.rightItemList.clear()
stateViewModel.rightItemList += dataPair.second

}
// if(comeFromHint) {
// //do nothing
// comeFromHint = false
// } else {
// stateViewModel.itemList.clear()
// stateViewModel.itemList += dataPair.first
// stateViewModel.rightItemList.clear()
// stateViewModel.rightItemList += dataPair.second
//
// }
stateViewModel.itemList.clear()
stateViewModel.itemList += dataPair.first
stateViewModel.rightItemList.clear()
stateViewModel.rightItemList += dataPair.second



Expand Down Expand Up @@ -633,7 +637,7 @@ class StateFragmentPresenter @Inject constructor(
} else {
when (helpIndex.indexTypeCase) {
HelpIndex.IndexTypeCase.NEXT_AVAILABLE_HINT_INDEX -> {
comeFromHint = true
//comeFromHint = true

Log.d("testhint","observe when hint coming 1")
stateViewModel.setHintBulbVisibility(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ class ExplorationProgressController @Inject constructor(
* [DataProvider] from [getCurrentState].
*/
fun submitAnswer(userAnswer: UserAnswer): DataProvider<AnswerOutcome> {
Log.d("testhint","in submitAnswer by SUBMIT_ANSWER_RESULT_PROVIDER_ID")
val submitResultFlow = createAsyncResultStateFlow<AnswerOutcome>()
val message = ControllerMessage.SubmitAnswer(userAnswer, activeSessionId, submitResultFlow)
sendCommandForOperation(message) { "Failed to schedule command for answer submission." }
Expand Down

0 comments on commit df4a41e

Please sign in to comment.