diff --git a/app/src/main/java/com/nextcloud/talk/polls/ui/PollMainDialogFragment.kt b/app/src/main/java/com/nextcloud/talk/polls/ui/PollMainDialogFragment.kt index 27c28dd80..4ee667ad7 100644 --- a/app/src/main/java/com/nextcloud/talk/polls/ui/PollMainDialogFragment.kt +++ b/app/src/main/java/com/nextcloud/talk/polls/ui/PollMainDialogFragment.kt @@ -121,7 +121,7 @@ class PollMainDialogFragment : DialogFragment() { private fun showLoadingScreen() { binding.root.post { - run() { + run { val fragmentHeight = binding.messagePollContentFragment.measuredHeight val contentFragment = PollLoadingFragment.newInstance(fragmentHeight)