Notify/status requires subscriptions

This commit is contained in:
M66B 2020-12-20 08:10:36 +01:00
parent 1573a1ad0e
commit fb5c9fe2a1
1 changed files with 2 additions and 1 deletions

View File

@ -950,6 +950,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
// Debug
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
boolean subscriptions = prefs.getBoolean("subscriptions", false);
boolean experiments = prefs.getBoolean("experiments", false);
boolean debug = (prefs.getBoolean("debug", false) || BuildConfig.DEBUG);
@ -1315,7 +1316,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
if (sync && folder.selectable)
EntityOperation.sync(this, folder.id, false, force && !forced);
if (capNotify && EntityFolder.INBOX.equals(folder.type))
if (capNotify && subscriptions && EntityFolder.INBOX.equals(folder.type))
ifolder.doCommand(new IMAPFolder.ProtocolCommand() {
@Override
public Object doCommand(IMAPProtocol protocol) throws ProtocolException {