diff --git a/app/src/main/java/org/oppia/android/app/topic/questionplayer/QuestionPlayerFragment.kt b/app/src/main/java/org/oppia/android/app/topic/questionplayer/QuestionPlayerFragment.kt index 180b15029b8..e29d4ddf48e 100644 --- a/app/src/main/java/org/oppia/android/app/topic/questionplayer/QuestionPlayerFragment.kt +++ b/app/src/main/java/org/oppia/android/app/topic/questionplayer/QuestionPlayerFragment.kt @@ -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 @@ -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 : @@ -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) { diff --git a/app/src/main/java/org/oppia/android/app/topic/questionplayer/QuestionPlayerFragmentPresenter.kt b/app/src/main/java/org/oppia/android/app/topic/questionplayer/QuestionPlayerFragmentPresenter.kt index 749ec8881e3..7d32e41cc8d 100644 --- a/app/src/main/java/org/oppia/android/app/topic/questionplayer/QuestionPlayerFragmentPresenter.kt +++ b/app/src/main/java/org/oppia/android/app/topic/questionplayer/QuestionPlayerFragmentPresenter.kt @@ -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 @@ -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 @@ -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 ) diff --git a/app/src/main/java/org/oppia/android/app/topic/questionplayer/QuestionPlayerViewModel.kt b/app/src/main/java/org/oppia/android/app/topic/questionplayer/QuestionPlayerViewModel.kt index b51189d97a9..78e781e828b 100644 --- a/app/src/main/java/org/oppia/android/app/topic/questionplayer/QuestionPlayerViewModel.kt +++ b/app/src/main/java/org/oppia/android/app/topic/questionplayer/QuestionPlayerViewModel.kt @@ -5,6 +5,7 @@ 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 @@ -12,7 +13,6 @@ 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(