Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de2845ae authored by cketti's avatar cketti
Browse files

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

parent f4a9d843
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 {
+4 −0
Original line number Diff line number Diff line
@@ -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()
        }
    }