code formatting

This commit is contained in:
Markus Doits 2022-12-06 18:46:31 +01:00
parent 99a939ab12
commit a94d750b73
No known key found for this signature in database
GPG key ID: 4D406BBC615201D1

View file

@ -159,7 +159,7 @@ class DetailSettingsActivity : AppCompatActivity() {
pref?.preferenceDataStore = object : PreferenceDataStore() {
override fun putBoolean(key: String?, value: Boolean) {
save(subscription.copy(dedicatedChannels = value))
if(value) {
if (value) {
notificationService.createSubscriptionNotificationChannels(subscription)
} else {
notificationService.deleteSubscriptionNotificationChannels(subscription)