Fix logout button

This commit is contained in:
Kirill Kamakin
2022-04-08 21:54:43 +05:00
parent 0768842405
commit a3d320bb79
2 changed files with 5 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
package gq.kirmanak.mealient.ui.activity
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.asLiveData
import androidx.lifecycle.viewModelScope
@@ -25,7 +26,8 @@ class MainActivityViewModel @Inject constructor(
authRepo.isAuthorizedFlow,
AuthenticationState::determineState
)
val authenticationStateLive = authenticationStateFlow.asLiveData()
val authenticationStateLive: LiveData<AuthenticationState>
get() = authenticationStateFlow.asLiveData()
fun logout() {
Timber.v("logout() called")