Skip to content

Commit 61cbb8c

Browse files
sebkurdsn5ft
authored andcommittedMay 2, 2022
[ProgressIndicator] Fix indeterminate progress indicator not working on API 22
Resolves #2675 Resolves #2028 GIT_ORIGIN_REV_ID=eaf535ee18b85d8c062eeb58f59a7ea2fdb91f48 PiperOrigin-RevId: 445914955
1 parent f700e6d commit 61cbb8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎lib/java/com/google/android/material/progressindicator/IndeterminateDrawable.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ boolean setVisibleInternal(boolean visible, boolean restart, boolean animate) {
107107
animatorDurationScaleProvider.getSystemAnimatorDurationScale(context.getContentResolver());
108108
if (visible
109109
&& (animate
110-
|| (VERSION.SDK_INT <= VERSION_CODES.LOLLIPOP && systemAnimatorDurationScale > 0))) {
110+
|| (VERSION.SDK_INT <= VERSION_CODES.LOLLIPOP_MR1
111+
&& systemAnimatorDurationScale > 0))) {
111112
animatorDelegate.startAnimator();
112113
}
113114

0 commit comments

Comments
 (0)
Please sign in to comment.