fix cursor jumping to end when editing question

setting the cursor to the end was just a (buggy) workaround when the question was of type liveData. As it's not liveData anymore, this workaround was now useless

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2022-07-15 09:19:07 +02:00 committed by Andy Scherzinger (Rebase PR Action)
parent 6b8c83f553
commit feaf041685

View File

@ -117,7 +117,6 @@ class PollCreateDialogFragment : DialogFragment(), PollCreateOptionsItemListener
override fun onTextChanged(question: CharSequence, start: Int, before: Int, count: Int) {
if (question.toString() != viewModel.question) {
viewModel.setQuestion(question.toString())
binding.pollCreateQuestion.setSelection(binding.pollCreateQuestion.length())
}
}
})