mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Revert "Fixed FTS when connect unmetered only"
This reverts commit 8dd1ff69ec
.
This commit is contained in:
parent
8dd1ff69ec
commit
da16da5bfa
2 changed files with 1 additions and 9 deletions
|
@ -291,7 +291,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
accounts++;
|
||||
}
|
||||
if (current.accountState.synchronize)
|
||||
operations += current.getOperations();
|
||||
operations += current.accountState.operations;
|
||||
|
||||
long account = current.command.getLong("account", -1);
|
||||
if (account > 0 && !current.accountState.id.equals(account))
|
||||
|
|
|
@ -69,14 +69,6 @@ public class TupleAccountNetworkState {
|
|||
return (this.networkState.isSuitable() && this.accountState.shouldRun(enabled));
|
||||
}
|
||||
|
||||
public int getOperations() {
|
||||
boolean unmetered = jconditions.optBoolean("unmetered");
|
||||
if (unmetered && !this.networkState.isUnmetered())
|
||||
return 0;
|
||||
|
||||
return accountState.operations;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(@Nullable Object obj) {
|
||||
if (obj instanceof TupleAccountNetworkState) {
|
||||
|
|
Loading…
Reference in a new issue