From c6ba3ffabfcd1953bad12ef574c744f37f780021 Mon Sep 17 00:00:00 2001 From: Ax333l Date: Sun, 6 Aug 2023 11:47:27 +0200 Subject: [PATCH] rename the repository --- .../app/revanced/manager/ui/viewmodel/ContributorViewModel.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/app/revanced/manager/ui/viewmodel/ContributorViewModel.kt b/app/src/main/java/app/revanced/manager/ui/viewmodel/ContributorViewModel.kt index 07da565e..3230c011 100644 --- a/app/src/main/java/app/revanced/manager/ui/viewmodel/ContributorViewModel.kt +++ b/app/src/main/java/app/revanced/manager/ui/viewmodel/ContributorViewModel.kt @@ -10,12 +10,12 @@ import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch import kotlinx.coroutines.withContext -class ContributorViewModel(private val repository: ReVancedAPI) : ViewModel() { +class ContributorViewModel(private val reVancedAPI: ReVancedAPI) : ViewModel() { val repositories = mutableStateListOf() init { viewModelScope.launch { - withContext(Dispatchers.IO) { repository.getContributors().getOrNull() }?.let( + withContext(Dispatchers.IO) { reVancedAPI.getContributors().getOrNull() }?.let( repositories::addAll ) }