Merge pull request #4711 from k9mail/account_change_marker

Don't set change marker when loading/initializing an Account instance
This commit is contained in:
cketti 2020-04-29 12:46:52 +02:00 committed by GitHub
commit fde4e267e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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()
}
}