Code cleanup
This commit is contained in:
parent
ea1c093136
commit
8e7e78d2bf
1 changed files with 2 additions and 2 deletions
|
|
@ -69,8 +69,8 @@ class SubscriptionManager(context: Context) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun updateNotificationMode(serviceId: Int, url: String?, @NotificationMode mode: Int): Completable {
|
fun updateNotificationMode(serviceId: Int, url: String, @NotificationMode mode: Int): Completable {
|
||||||
return subscriptionTable().getSubscription(serviceId, url!!)
|
return subscriptionTable().getSubscription(serviceId, url)
|
||||||
.flatMapCompletable { entity: SubscriptionEntity ->
|
.flatMapCompletable { entity: SubscriptionEntity ->
|
||||||
Completable.fromAction {
|
Completable.fromAction {
|
||||||
entity.notificationMode = mode
|
entity.notificationMode = mode
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue