mirror of
https://github.com/bbara04/Purefin.git
synced 2026-03-31 17:10:08 +02:00
Removed online/offline toggle button from tv ui and also from the references
This commit is contained in:
@@ -61,12 +61,6 @@ class AppViewModel @Inject constructor(
|
||||
}
|
||||
}.stateIn(viewModelScope, SharingStarted.WhileSubscribed(5_000), emptyList())
|
||||
|
||||
val isOfflineMode = userSessionRepository.isOfflineMode.stateIn(
|
||||
scope = viewModelScope,
|
||||
started = SharingStarted.Eagerly,
|
||||
initialValue = false
|
||||
)
|
||||
|
||||
val continueWatching = combine(
|
||||
appContentRepository.continueWatching,
|
||||
appContentRepository.movies,
|
||||
@@ -232,10 +226,4 @@ class AppViewModel @Inject constructor(
|
||||
}
|
||||
}
|
||||
|
||||
fun toggleOfflineMode() {
|
||||
viewModelScope.launch {
|
||||
userSessionRepository.setOfflineMode(!isOfflineMode.value)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user