We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4f3835 commit d28aac5Copy full SHA for d28aac5
app/src/main/java/org/shirabox/app/ui/activity/resource/ResourceViewModel.kt
@@ -222,9 +222,10 @@ class ResourceViewModel @Inject constructor(@ApplicationContext context: Context
222
223
fun switchNotificationsStatus() {
224
viewModelScope.launch(Dispatchers.IO) {
225
- shiraBoxAnime.value?.let { anime ->
+ shiraBoxAnime.value?.let {
226
val cachedContent = db.contentDao().getContentByUid(internalContentUid.longValue)
227
228
+ episodesNotifications.value = cachedContent.episodesNotifications.not()
229
db.contentDao().updateContents(
230
cachedContent.copy(episodesNotifications = cachedContent.episodesNotifications.not())
231
)
0 commit comments