package Ġorg . cc ci . g to . android . common . lott ie . databinding Ċ Ċ import Ġandroidx . databinding . Binding Adapter Ċ import Ġcom . air bnb . lott ie . Lot tie Animation View Ċ import Ġcom . air bnb . lott ie . Lot tie Drawable Ċ import Ġorg . cc ci . g to . android . common . lott ie . R Ċ Ċ @ Binding Adapter (" lott ie _ loop ") Ċ internal Ġfun ĠL ot tie Animation View . bind Loop ( loop : ĠBoolean ?) Ġ{ ĊĠĠĠ Ġrepeat Count Ġ= Ġif Ġ( loop Ġ== Ġtrue ) ĠL ot tie Drawable . INF IN ITE Ġelse Ġ 0 Ċ } Ċ Ċ @ Binding Adapter (" lott ie _ auto Play ") Ċ internal Ġfun ĠL ot tie Animation View . bind Auto Play ( auto Play : ĠBoolean ) Ġ{ ĊĠĠĠ Ġ// Ġshort - circuit Ġif Ġauto Play Ġsetting Ġisn 't Ġchanging ĊĠĠĠ Ġif Ġ( getTag ( R . id . lott ie _ autoplay _ enabled ) Ġ== Ġauto Play ) Ġreturn ĊĊĠĠĠ Ġif Ġ( auto Play ) Ġ{ ĊĠĠĠĠĠĠĠ Ġresume Animation () ĊĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠ Ġpause Animation () ĊĠĠĠ Ġ} ĊĠĠĠ Ġset Tag ( R . id . lott ie _ autoplay _ enabled , Ġauto Play ) Ċ } Ċ