Once the UpdateTimeRunnable
is detached and the weakRefRttv
cleared, it is never attached again
#47
Labels
UpdateTimeRunnable
is detached and the weakRefRttv
cleared, it is never attached again
#47
In the
stopTaskForPeriodicallyUpdatingRelativeTime()
method, themUpdateTimeTask
is detached, resulting in the weak reference that connects it the the RelativeTimeView being cleared. In thestartTaskForPeriodicallyUpdatingRelativeTime()
method, the samemUpdateTimeTask
is reused, but the weak reference is still null. As a consequence, therun()
method in the runnable cannot update the text view.It should be pretty easy to reproduce. Any action that results in the
stopTaskForPeriodicallyUpdatingRelativeTime()
method being called should cause the time to stop being updated. For example, minimize the app and restore it.The text was updated successfully, but these errors were encountered: