codelab-kotlin-coroutines
codelab-kotlin-coroutines copied to clipboard
At step 9 TitleRefreshCallback is not required any more
trafficstars
Prompt to remove TitleRefreshCallback callback cause it's not using anymore.
There is also reference to removed function in KDoc:
/**
* [LiveData] to load title.
*
* This is the main interface for loading a title. The title will be loaded from the offline
* cache.
*
* Observing this will not cause the title to be refreshed, use [TitleRepository.refreshTitleWithCallbacks]
* to refresh the title.
*/
val title: LiveData<String?> = titleDao.titleLiveData.map { it?.title }