Merge "Updates A11y Shortcut animations to not loop in code." into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
4a84a244b2
@@ -72,7 +72,6 @@ import com.android.settingslib.utils.StringUtil;
|
||||
import com.android.settingslib.widget.LottieColorUtils;
|
||||
|
||||
import com.airbnb.lottie.LottieAnimationView;
|
||||
import com.airbnb.lottie.LottieDrawable;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
@@ -335,7 +334,8 @@ public final class AccessibilityShortcutsTutorial {
|
||||
result -> Log.w(TAG, "Invalid image raw resource id: " + imageRawRes,
|
||||
result));
|
||||
lottieView.setAnimation(imageRawRes);
|
||||
lottieView.setRepeatCount(LottieDrawable.INFINITE);
|
||||
// Follow the Motion Stoppable requirement by using a finite animation.
|
||||
lottieView.setRepeatCount(0);
|
||||
LottieColorUtils.applyDynamicColors(context, lottieView);
|
||||
lottieView.playAnimation();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user