Loading/initializing an Account instance shouldn't set change marker

This commit is contained in:
cketti 2020-04-28 20:52:44 +02:00
parent f4a9d843b0
commit de2845aefa
2 changed files with 8 additions and 0 deletions

View file

@ -363,6 +363,10 @@ public class Account implements BaseAccount, StoreConfig {
}
public synchronized void setDisplayCount(int displayCount) {
if (this.displayCount == displayCount) {
return;
}
if (displayCount != -1) {
this.displayCount = displayCount;
} else {

View file

@ -157,6 +157,8 @@ class AccountPreferenceSerializer(
if (description == null) {
description = email
}
resetChangeMarkers()
}
}
@ -579,6 +581,8 @@ class AccountPreferenceSerializer(
ringtone = "content://settings/system/notification_sound"
ledColor = chipColor
}
resetChangeMarkers()
}
}