mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-06-28 11:49:55 +00:00
Merge pull request #1654 from michaelschattgen/fix/negative-animation-period
Fix animation crash when using period of 7
This commit is contained in:
commit
efaa6afda6
1 changed files with 1 additions and 1 deletions
|
@ -433,7 +433,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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue