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

Commit bc16bc96 authored by Nihar Thakkar's avatar Nihar Thakkar
Browse files

Enable notifications by default.

parent eab87212
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -280,7 +280,7 @@ public class Account implements BaseAccount, AccountConfig {
    protected Account(Context context) {
        accountUuid = UUID.randomUUID().toString();
        localStorageProviderId = StorageManager.getInstance(context).getDefaultProviderId();
        automaticCheckIntervalMinutes = -1;
        automaticCheckIntervalMinutes = 5;
        idleRefreshMinutes = 24;
        pushPollOnConnect = true;
        displayCount = K9.DEFAULT_VISIBLE_LIMIT;
@@ -410,7 +410,7 @@ public class Account implements BaseAccount, AccountConfig {
        transportUri = Base64.decode(storage.getString(accountUuid + ".transportUri", null));
        description = storage.getString(accountUuid + ".description", null);
        alwaysBcc = storage.getString(accountUuid + ".alwaysBcc", alwaysBcc);
        automaticCheckIntervalMinutes = storage.getInt(accountUuid + ".automaticCheckIntervalMinutes", -1);
        automaticCheckIntervalMinutes = storage.getInt(accountUuid + ".automaticCheckIntervalMinutes", 5);
        idleRefreshMinutes = storage.getInt(accountUuid + ".idleRefreshMinutes", 24);
        pushPollOnConnect = storage.getBoolean(accountUuid + ".pushPollOnConnect", true);
        displayCount = storage.getInt(accountUuid + ".displayCount", K9.DEFAULT_VISIBLE_LIMIT);
@@ -418,7 +418,7 @@ public class Account implements BaseAccount, AccountConfig {
            displayCount = K9.DEFAULT_VISIBLE_LIMIT;
        }
        latestOldMessageSeenTime = storage.getLong(accountUuid + ".latestOldMessageSeenTime", 0);
        notifyNewMail = storage.getBoolean(accountUuid + ".notifyNewMail", false);
        notifyNewMail = storage.getBoolean(accountUuid + ".notifyNewMail", true);

        folderNotifyNewMailMode = Preferences.getEnumStringPref(storage, accountUuid + ".folderNotifyNewMailMode", FolderMode.ALL);
        notifySelfNewMail = storage.getBoolean(accountUuid + ".notifySelfNewMail", true);
+2 −2
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ class AccountConfigImpl implements AccountConfig, Parcelable {
    private String spamFolderName;
    private String autoExpandFolderName = Account.INBOX;

    private int maximumAutoDownloadMessageSize = 32768;
    private int maximumAutoDownloadMessageSize = 1048576;
    private boolean subscribedFoldersOnly = false;

    private Map<NetworkType, Boolean> compressionMap = new HashMap<>();
@@ -66,7 +66,7 @@ class AccountConfigImpl implements AccountConfig, Parcelable {
    private AuthType outgoingAuthType;
    private String outgoingPort;

    private boolean notifyNewMail;
    private boolean notifyNewMail = true;
    private boolean showOngoing;
    private int automaticCheckIntervalMinutes = 5;
    private Account.FolderMode folderPushMode = Account.FolderMode.FIRST_CLASS;