Reset last connected time on disable from list

This commit is contained in:
M66B 2021-06-16 20:21:21 +02:00
parent bce33a421a
commit c9de9a2e96
2 changed files with 2 additions and 1 deletions

View File

@ -381,6 +381,7 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
if (!sync) {
db.account().setAccountWarning(id, null);
db.account().setAccountError(id, null);
db.account().setAccountConnected(id, null);
}
db.account().setAccountSynchronize(id, sync);

View File

@ -149,7 +149,7 @@ public interface DaoAccount {
int setAccountPassword(long id, String password);
@Query("UPDATE account SET last_connected = :last_connected WHERE id = :id AND NOT (last_connected IS :last_connected)")
int setAccountConnected(long id, long last_connected);
int setAccountConnected(long id, Long last_connected);
@Query("UPDATE account SET backoff_until = :backoff_until WHERE id = :id AND NOT (backoff_until IS :backoff_until)")
int setAccountBackoff(long id, Long backoff_until);