Prevent animated icons from animation on startup

Make ImageButtons that use animated icons not animate when the fragment is initially created.
This commit is contained in:
OxygenCobalt
2020-10-18 13:45:13 -06:00
parent 2811c83543
commit d01aa3ea4a
12 changed files with 50 additions and 22 deletions
@@ -91,12 +91,12 @@
android:layout_width="@dimen/size_play_pause_compact"
android:layout_height="@dimen/size_play_pause_compact"
android:background="@drawable/ui_unbounded_ripple"
android:tint="@color/control_color"
android:onClick="@{() -> playbackModel.invertPlayingStatus()}"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@drawable/ic_play_to_pause"
android:tint="@color/control_color" />
tools:src="@drawable/ic_play_to_pause" />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>