Page 514, tearDown never being called

Added log statement to tearDown function on page 514 but that function never being called. According to Android’s documentation, that method is not guaranteed to be called unless someone called the finish method. So, won’t it be better to move all clean-up logic to the ViewModel’s onCleared function?

Would like to withdraw my question. The question submitted was never answered anyway.