Reset last connected time on disable from list

pull/199/head
M66B 3 years ago
parent bce33a421a
commit c9de9a2e96

@ -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);

@ -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);

Loading…
Cancel
Save