Fix animation crash when using period of 7

This commit is contained in:
Michael Schättgen 2025-05-29 12:59:24 +02:00
parent 62c0d273a5
commit 1c30557779

View file

@ -426,7 +426,7 @@ public class EntryHolder extends RecyclerView.ViewHolder {
final int totalStateDuration = 7000; final int totalStateDuration = 7000;
TotpInfo info = (TotpInfo) _entry.getInfo(); 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)); _profileCode.setTextColor(MaterialColors.getColor(_profileCode, com.google.android.material.R.attr.colorError));
return; return;
} }