Replace Shared Preferences with Data Store

This commit is contained in:
Kirill Kamakin
2022-04-03 19:55:31 +05:00
parent fd9f7e5aa1
commit b3e25db4df
17 changed files with 244 additions and 144 deletions

View File

@@ -38,7 +38,9 @@ class AuthenticationViewModel @Inject constructor(
fun logout() {
Timber.v("logout() called")
authRepo.logout()
viewModelScope.launch { recipeRepo.clearLocalData() }
viewModelScope.launch {
authRepo.logout()
recipeRepo.clearLocalData()
}
}
}