diff --git a/app/src/main/kotlin/com/simplemobiletools/clock/fragments/TimerFragment.kt b/app/src/main/kotlin/com/simplemobiletools/clock/fragments/TimerFragment.kt index 54736b2..e172653 100644 --- a/app/src/main/kotlin/com/simplemobiletools/clock/fragments/TimerFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/clock/fragments/TimerFragment.kt @@ -92,8 +92,8 @@ class TimerFragment : Fragment() { private fun refreshTimers(scrollToLatest: Boolean = false) { activity?.timerHelper?.getTimers { timers -> - timerAdapter.submitList(timers) { - view.timers_list.post { + activity?.runOnUiThread { + timerAdapter.submitList(timers) { if (getView() != null) { if (timerPositionToScrollTo != INVALID_POSITION && timerAdapter.itemCount > timerPositionToScrollTo) { view.timers_list.scrollToPosition(timerPositionToScrollTo)