We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d28aac5 commit d27c080Copy full SHA for d27c080
app/src/main/java/org/shirabox/app/ui/activity/resource/ResourceViewModel.kt
@@ -209,10 +209,8 @@ class ResourceViewModel @Inject constructor(@ApplicationContext context: Context
209
AppDataStore.read(context, DataStoreScheme.FIELD_SUBSCRIPTION.key).firstOrNull()
210
?: DataStoreScheme.FIELD_SUBSCRIPTION.defaultValue
211
212
- if(subscriptionAllowed) {
213
- shiraBoxAnime.value?.let {
214
- cachedContent = cachedContent.copy(episodesNotifications = isFavourite.value)
215
- }
+ shiraBoxAnime.value?.let {
+ cachedContent = cachedContent.copy(episodesNotifications = isFavourite.value && subscriptionAllowed)
216
}
217
218
db.contentDao().updateContents(cachedContent)
0 commit comments