Skip to content

Commit

Permalink
updating logic to consider ignoreSystemAnimationsDisabled first
Browse files Browse the repository at this point in the history
updating logic to consider `ignoreSystemAnimationsDisabled`  first before running other evaluation.
  • Loading branch information
Pranay Airan committed Aug 20, 2024
1 parent bb2d811 commit 86f2531
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lottie/src/main/java/com/airbnb/lottie/LottieDrawable.java
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,10 @@ boolean isAnimatingOrWillAnimateOnVisible() {
}

private boolean animationsEnabled() {
return (systemAnimationsEnabled || ignoreSystemAnimationsDisabled) &&
if (ignoreSystemAnimationsDisabled) {
return true;
}
return systemAnimationsEnabled &&
L.getReducedMotionOption().getCurrentReducedMotionMode(getContext()) == ReducedMotionMode.STANDARD_MOTION;
}

Expand Down

0 comments on commit 86f2531

Please sign in to comment.