Skip to content

Commit

Permalink
klint
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishwajith-Shettigar committed Jul 9, 2024
1 parent d5b205e commit ee98317
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import org.oppia.android.app.fragment.InjectableFragment
import org.oppia.android.app.model.HelpIndex
import org.oppia.android.app.model.ProfileId
import org.oppia.android.app.model.UserAnswer
import org.oppia.android.app.model.UserAnswerState
import org.oppia.android.app.player.state.answerhandling.InteractionAnswerErrorOrAvailabilityCheckReceiver
import org.oppia.android.app.player.state.answerhandling.InteractionAnswerReceiver
import org.oppia.android.app.player.state.listener.ContinueNavigationButtonListener
Expand All @@ -22,8 +23,6 @@ import org.oppia.android.app.player.state.listener.SubmitNavigationButtonListene
import org.oppia.android.util.extensions.getProto
import org.oppia.android.util.extensions.putProto
import javax.inject.Inject
import org.oppia.android.app.model.UserAnswerState
import org.oppia.android.app.player.state.StateFragment

/** Fragment that contains all questions in Question Player. */
class QuestionPlayerFragment :
Expand Down Expand Up @@ -59,7 +58,9 @@ class QuestionPlayerFragment :
UserAnswerState.getDefaultInstance()
) ?: UserAnswerState.getDefaultInstance()
val profileId = args.getProto(PROFILE_ID_ARGUMENT_KEY, ProfileId.getDefaultInstance())
return questionPlayerFragmentPresenter.handleCreateView(inflater, container, profileId,userAnswerState)
return questionPlayerFragmentPresenter.handleCreateView(
inflater, container, profileId, userAnswerState
)
}

override fun onAnswerReadyForSubmission(answer: UserAnswer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import org.oppia.android.app.model.HelpIndex
import org.oppia.android.app.model.ProfileId
import org.oppia.android.app.model.State
import org.oppia.android.app.model.UserAnswer
import org.oppia.android.app.model.UserAnswerState
import org.oppia.android.app.player.state.ConfettiConfig.MINI_CONFETTI_BURST
import org.oppia.android.app.player.state.StatePlayerRecyclerViewAssembler
import org.oppia.android.app.player.state.listener.RouteToHintsAndSolutionListener
Expand All @@ -36,7 +37,6 @@ import org.oppia.android.util.data.DataProvider
import org.oppia.android.util.data.DataProviders.Companion.toLiveData
import org.oppia.android.util.gcsresource.QuestionResourceBucketName
import javax.inject.Inject
import org.oppia.android.app.model.UserAnswerState

/** The presenter for [QuestionPlayerFragment]. */
@FragmentScope
Expand Down Expand Up @@ -81,7 +81,7 @@ class QuestionPlayerFragmentPresenter @Inject constructor(
this.profileId = profileId

recyclerViewAssembler = createRecyclerViewAssembler(
assemblerBuilderFactory.create(resourceBucketName, "skill", profileId,userAnswerState),
assemblerBuilderFactory.create(resourceBucketName, "skill", profileId, userAnswerState),
binding.congratulationsTextView,
binding.congratulationsTextConfettiView
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import androidx.databinding.ObservableField
import androidx.databinding.ObservableList
import org.oppia.android.R
import org.oppia.android.app.model.UserAnswer
import org.oppia.android.app.model.UserAnswerState
import org.oppia.android.app.player.state.answerhandling.AnswerErrorCategory
import org.oppia.android.app.player.state.answerhandling.InteractionAnswerHandler
import org.oppia.android.app.player.state.itemviewmodel.StateItemViewModel
import org.oppia.android.app.translation.AppLanguageResourceHandler
import org.oppia.android.app.viewmodel.ObservableArrayList
import org.oppia.android.app.viewmodel.ObservableViewModel
import javax.inject.Inject
import org.oppia.android.app.model.UserAnswerState

/** [ObservableViewModel] for the question player. */
class QuestionPlayerViewModel @Inject constructor(
Expand Down

0 comments on commit ee98317

Please sign in to comment.