Signed-off-by: Dominic Fischer <dominicfischer7@gmail.com>
This commit is contained in:
Dominic Fischer 2020-11-18 14:27:46 +00:00
parent 92a6e9ea5a
commit 796ba72bde

View file

@ -60,10 +60,10 @@ class VectorSettingsAdvancedNotificationPreferenceFragment @Inject constructor()
if (!isAdded) {
return@launch
}
hideLoadingView()
result.onSuccess {
preference.setPushRule(ruleAndKind.copy(pushRule = newRule))
}
hideLoadingView()
result.onFailure { failure ->
// Restore the previous value
refreshDisplay()