mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Verification: improve blinking effect (not perfect yet)
This commit is contained in:
parent
aaeb54db7c
commit
188cd6beff
@ -35,12 +35,6 @@ class VerificationChooseMethodController @Inject constructor(
|
|||||||
|
|
||||||
private var viewState: VerificationChooseMethodViewState? = null
|
private var viewState: VerificationChooseMethodViewState? = null
|
||||||
|
|
||||||
init {
|
|
||||||
// We are requesting a model build directly as the first build of epoxy is on the main thread.
|
|
||||||
// It avoids to build the whole list on the main thread.
|
|
||||||
requestModelBuild()
|
|
||||||
}
|
|
||||||
|
|
||||||
fun update(viewState: VerificationChooseMethodViewState) {
|
fun update(viewState: VerificationChooseMethodViewState) {
|
||||||
this.viewState = viewState
|
this.viewState = viewState
|
||||||
requestModelBuild()
|
requestModelBuild()
|
||||||
|
@ -37,12 +37,6 @@ class VerificationConclusionController @Inject constructor(
|
|||||||
|
|
||||||
private var viewState: VerificationConclusionViewState? = null
|
private var viewState: VerificationConclusionViewState? = null
|
||||||
|
|
||||||
init {
|
|
||||||
// We are requesting a model build directly as the first build of epoxy is on the main thread.
|
|
||||||
// It avoids to build the whole list on the main thread.
|
|
||||||
requestModelBuild()
|
|
||||||
}
|
|
||||||
|
|
||||||
fun update(viewState: VerificationConclusionViewState) {
|
fun update(viewState: VerificationConclusionViewState) {
|
||||||
this.viewState = viewState
|
this.viewState = viewState
|
||||||
requestModelBuild()
|
requestModelBuild()
|
||||||
|
@ -38,12 +38,6 @@ class VerificationEmojiCodeController @Inject constructor(
|
|||||||
|
|
||||||
private var viewState: VerificationEmojiCodeViewState? = null
|
private var viewState: VerificationEmojiCodeViewState? = null
|
||||||
|
|
||||||
init {
|
|
||||||
// We are requesting a model build directly as the first build of epoxy is on the main thread.
|
|
||||||
// It avoids to build the whole list on the main thread.
|
|
||||||
requestModelBuild()
|
|
||||||
}
|
|
||||||
|
|
||||||
fun update(viewState: VerificationEmojiCodeViewState) {
|
fun update(viewState: VerificationEmojiCodeViewState) {
|
||||||
this.viewState = viewState
|
this.viewState = viewState
|
||||||
requestModelBuild()
|
requestModelBuild()
|
||||||
|
@ -38,12 +38,6 @@ class VerificationRequestController @Inject constructor(
|
|||||||
|
|
||||||
private var viewState: VerificationRequestViewState? = null
|
private var viewState: VerificationRequestViewState? = null
|
||||||
|
|
||||||
init {
|
|
||||||
// We are requesting a model build directly as the first build of epoxy is on the main thread.
|
|
||||||
// It avoids to build the whole list on the main thread.
|
|
||||||
requestModelBuild()
|
|
||||||
}
|
|
||||||
|
|
||||||
fun update(viewState: VerificationRequestViewState) {
|
fun update(viewState: VerificationRequestViewState) {
|
||||||
this.viewState = viewState
|
this.viewState = viewState
|
||||||
requestModelBuild()
|
requestModelBuild()
|
||||||
|
Loading…
Reference in New Issue
Block a user