Skip to content

Commit efaa6af

Browse files
authored
Merge pull request #1654 from michaelschattgen/fix/negative-animation-period
Fix animation crash when using period of 7
2 parents 6f27014 + 1c30557 commit efaa6af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/beemdevelopment/aegis/ui/views/EntryHolder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ public void startExpirationAnimation() {
433433

434434
final int totalStateDuration = 7000;
435435
TotpInfo info = (TotpInfo) _entry.getInfo();
436-
if (info.getPeriod() * 1000 < totalStateDuration) {
436+
if (info.getPeriod() * 1000 <= totalStateDuration) {
437437
_profileCode.setTextColor(MaterialColors.getColor(_profileCode, com.google.android.material.R.attr.colorError));
438438
return;
439439
}

0 commit comments

Comments
 (0)