Loading app/src/main/java/foundation/e/apps/data/login/AuthenticatorRepository.kt +2 −2 Original line number Diff line number Diff line Loading @@ -45,13 +45,13 @@ class AuthenticatorRepository @Inject constructor( appLoungeDataStore.saveAuthData(auth) } suspend fun getAuthObjects(clearAuthTypes: List<String> = listOf()): List<AuthObject> { suspend fun fetchAuthObjects(authTypes: List<String> = listOf()): List<AuthObject> { val authObjectsLocal = ArrayList<AuthObject>() for (authenticator in authenticators) { if (!authenticator.isStoreActive()) continue if (authenticator::class.java.simpleName in clearAuthTypes) { if (authenticator::class.java.simpleName in authTypes) { authenticator.logout() } Loading app/src/main/java/foundation/e/apps/data/playstore/PlayStoreRepository.kt +1 −1 Original line number Diff line number Diff line Loading @@ -174,7 +174,7 @@ class PlayStoreRepository @Inject constructor( private suspend fun refreshPlayStoreAuthentication() { Timber.i("Refreshing authentication.") authenticatorRepository.getAuthObjects(listOf(PlayStoreAuthenticator::class.java.simpleName)) authenticatorRepository.fetchAuthObjects(listOf(PlayStoreAuthenticator::class.java.simpleName)) } private fun isEmulator(): Boolean { Loading app/src/main/java/foundation/e/apps/ui/LoginViewModel.kt +1 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ class LoginViewModel @Inject constructor( */ fun startLoginFlow(clearList: List<String> = listOf()) { viewModelScope.launch { val authObjectsLocal = authenticatorRepository.getAuthObjects(clearList) val authObjectsLocal = authenticatorRepository.fetchAuthObjects(clearList) authObjects.postValue(authObjectsLocal) } } Loading Loading
app/src/main/java/foundation/e/apps/data/login/AuthenticatorRepository.kt +2 −2 Original line number Diff line number Diff line Loading @@ -45,13 +45,13 @@ class AuthenticatorRepository @Inject constructor( appLoungeDataStore.saveAuthData(auth) } suspend fun getAuthObjects(clearAuthTypes: List<String> = listOf()): List<AuthObject> { suspend fun fetchAuthObjects(authTypes: List<String> = listOf()): List<AuthObject> { val authObjectsLocal = ArrayList<AuthObject>() for (authenticator in authenticators) { if (!authenticator.isStoreActive()) continue if (authenticator::class.java.simpleName in clearAuthTypes) { if (authenticator::class.java.simpleName in authTypes) { authenticator.logout() } Loading
app/src/main/java/foundation/e/apps/data/playstore/PlayStoreRepository.kt +1 −1 Original line number Diff line number Diff line Loading @@ -174,7 +174,7 @@ class PlayStoreRepository @Inject constructor( private suspend fun refreshPlayStoreAuthentication() { Timber.i("Refreshing authentication.") authenticatorRepository.getAuthObjects(listOf(PlayStoreAuthenticator::class.java.simpleName)) authenticatorRepository.fetchAuthObjects(listOf(PlayStoreAuthenticator::class.java.simpleName)) } private fun isEmulator(): Boolean { Loading
app/src/main/java/foundation/e/apps/ui/LoginViewModel.kt +1 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ class LoginViewModel @Inject constructor( */ fun startLoginFlow(clearList: List<String> = listOf()) { viewModelScope.launch { val authObjectsLocal = authenticatorRepository.getAuthObjects(clearList) val authObjectsLocal = authenticatorRepository.fetchAuthObjects(clearList) authObjects.postValue(authObjectsLocal) } } Loading