Просмотр исходного кода

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>
Marcel Hibbe 3 лет назад
Родитель
Сommit
feaf041685

+ 0 - 1
app/src/main/java/com/nextcloud/talk/polls/ui/PollCreateDialogFragment.kt

@@ -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())
                 }
             }
         })