Skip to content

Commit e9fcdf0

Browse files
pekingmeikim24
authored andcommitted
[ProgressIndicator] Fixed the visibility bug in RecyclerView.
PiperOrigin-RevId: 351655786 (cherry picked from commit 5910955)
1 parent d523523 commit e9fcdf0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/java/com/google/android/material/progressindicator/DrawableWithAnimatedVisibilityChange.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,16 +187,16 @@ private void dispatchAnimationEnd() {
187187

188188
// ******************* Visibility control *******************
189189

190-
/** The drawable will start with show animator as default. */
190+
/** The drawable will start the main animation without show animator. */
191191
@Override
192192
public void start() {
193-
setVisible(true, true);
193+
setVisibleInternal(true, true, false);
194194
}
195195

196-
/** The drawable will stop with hide animator as default. */
196+
/** The drawable will stop the main animation without hide animator. */
197197
@Override
198198
public void stop() {
199-
setVisible(false, true);
199+
setVisibleInternal(false, true, false);
200200
}
201201

202202
@Override

0 commit comments

Comments
 (0)