Skip to content

Commit

Permalink
[ProgressIndicator] Fix indeterminate progress indicator not working …
Browse files Browse the repository at this point in the history
…on API 22

Resolves #2675
Resolves #2028

GIT_ORIGIN_REV_ID=eaf535ee18b85d8c062eeb58f59a7ea2fdb91f48
PiperOrigin-RevId: 445914955
  • Loading branch information
sebkur authored and dsn5ft committed May 2, 2022
1 parent f700e6d commit 61cbb8c
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -107,7 +107,8 @@ 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_MR1
&& systemAnimatorDurationScale > 0))) {
animatorDelegate.startAnimator();
}

Expand Down

0 comments on commit 61cbb8c

Please sign in to comment.