Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Fix isProviderKsu
Browse files Browse the repository at this point in the history
  • Loading branch information
SanmerDev committed Dec 31, 2023
1 parent 5a48846 commit 35d665b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@ class ModulesViewModel @Inject constructor(
private val modulesRepository: ModulesRepository,
private val userPreferencesRepository: UserPreferencesRepository,
) : ViewModel() {
val isProviderKsu get() = ProviderCompat.isKsu
val isProviderAlive get() = ProviderCompat.isAlive

val isProviderKsu get() = when {
isProviderAlive -> ProviderCompat.isKsu
else -> false
}

private val modulesMenu get() = userPreferencesRepository.data
.map { it.modulesMenu }

Expand Down

0 comments on commit 35d665b

Please sign in to comment.