Skip to content

Commit

Permalink
Fixed crash on incoming call
Browse files Browse the repository at this point in the history
  • Loading branch information
vkryl committed Nov 30, 2023
1 parent 594eee4 commit 9ef6ba0
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -778,9 +778,11 @@ public void onFactorChanged (int id, float factor, float fraction, FactorAnimato
public void onFactorChangeFinished (int id, float finalFactor, FactorAnimator callee) {
switch (id) {
case ANIMATOR_FLASH_ID: {
flashAnimator.forceFactor(0f);
if (isFlashing) {
flashAnimator.animateTo(1f);
if (finalFactor == 1f) {
flashAnimator.forceFactor(0f);
if (isFlashing) {
flashAnimator.animateTo(1f);
}
}
break;
}
Expand Down

0 comments on commit 9ef6ba0

Please sign in to comment.