Skip to content

Commit

Permalink
[ProgressIndicator] Fixed indeterminate animation not playing after i…
Browse files Browse the repository at this point in the history
…nflation/being visible in SDK 21.

PiperOrigin-RevId: 350783980
(cherry picked from commit 86b70d7)
  • Loading branch information
pekingme authored and ikim24 committed Jan 14, 2021
1 parent dad7752 commit 46d8fba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ boolean setVisibleInternal(boolean visible, boolean restart, boolean animate) {
animatorDurationScaleProvider.getSystemAnimatorDurationScale(context.getContentResolver());
if (visible
&& (animate
|| (VERSION.SDK_INT < VERSION_CODES.LOLLIPOP && systemAnimatorDurationScale > 0))) {
|| (VERSION.SDK_INT <= VERSION_CODES.LOLLIPOP && systemAnimatorDurationScale > 0))) {
animatorDelegate.startAnimator();
}

Expand Down

0 comments on commit 46d8fba

Please sign in to comment.