Home
last modified time | relevance | path

Searched refs:LottiefilesMode (Results 1 – 3 of 3) sorted by relevance

/external/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/
DLottiefilesFragment.kt16 val mode: LottiefilesMode = LottiefilesMode.Recent, in <lambda>()
36 LottiefilesMode.Recent -> service.getRecent(page) in <lambda>()
37 LottiefilesMode.Popular -> service.getPopular(page) in <lambda>()
38 LottiefilesMode.Search -> service.search(state.query) in <lambda>()
42 fun setMode(mode: LottiefilesMode, query: String = "") = setState { in <lambda>()
43 if (this.mode == mode && mode != LottiefilesMode.Search) return@setState this in <lambda>()
44 …if (this.mode == mode && mode == LottiefilesMode.Search && this.query == query) return@setState th… in <lambda>()
72 recentClickListener { _ -> viewModel.setMode(LottiefilesMode.Recent) } in buildModels()
73 popularClickListener { _ -> viewModel.setMode(LottiefilesMode.Popular) } in buildModels()
74 searchClickListener { _ -> viewModel.setMode(LottiefilesMode.Search) } in buildModels()
[all …]
DMode.kt3 enum class LottiefilesMode { class
/external/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/views/
DLottiefilesTabBar.kt9 import com.airbnb.lottie.samples.LottiefilesMode
26 fun setMode(mode: LottiefilesMode) { in setMode()
27 popularView.isActivated = mode == LottiefilesMode.Popular in setMode()
28 recentView.isActivated = mode == LottiefilesMode.Recent in setMode()
29 searchView.isActivated = mode == LottiefilesMode.Search in setMode()