Skip to content

Commit

Permalink
use viewLifecycleOwner in subscribeToCurrentQuestion()
Browse files Browse the repository at this point in the history
  • Loading branch information
sichchurov committed Oct 29, 2023
1 parent e3fcfb2 commit 1d408ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class SurveyFragmentPresenter @Inject constructor(

private fun subscribeToCurrentQuestion() {
ephemeralQuestionLiveData.observe(
fragment
fragment.viewLifecycleOwner
) {
processEphemeralQuestionResult(it)
}
Expand Down

0 comments on commit 1d408ee

Please sign in to comment.