Merge pull request #1654 from michaelschattgen/fix/negative-animation-period

Fix animation crash when using period of 7
This commit is contained in:
Alexander Bakker 2025-05-29 13:10:10 +02:00 committed by GitHub
commit efaa6afda6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -433,7 +433,7 @@ public class EntryHolder extends RecyclerView.ViewHolder {
final int totalStateDuration = 7000;
TotpInfo info = (TotpInfo) _entry.getInfo();
if (info.getPeriod() * 1000 < totalStateDuration) {
if (info.getPeriod() * 1000 <= totalStateDuration) {
_profileCode.setTextColor(MaterialColors.getColor(_profileCode, com.google.android.material.R.attr.colorError));
return;
}