mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-08 08:08:45 +01:00
Merge pull request #8087 from ByeongsuPark/feature/bspark/bugfix-7928-next-button-disabled
Fix the next button disable issue after visiting homeserver screen
This commit is contained in:
commit
f8283e44ba
1
changelog.d/7928.bugfix
Normal file
1
changelog.d/7928.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix the next button disabled issue after going to change homeserver screen
|
@ -23,6 +23,7 @@ import android.view.View
|
|||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.autofill.HintConstants
|
import androidx.autofill.HintConstants
|
||||||
import androidx.core.view.isVisible
|
import androidx.core.view.isVisible
|
||||||
|
import androidx.lifecycle.flowWithLifecycle
|
||||||
import androidx.lifecycle.lifecycleScope
|
import androidx.lifecycle.lifecycleScope
|
||||||
import dagger.hilt.android.AndroidEntryPoint
|
import dagger.hilt.android.AndroidEntryPoint
|
||||||
import im.vector.app.R
|
import im.vector.app.R
|
||||||
@ -103,7 +104,7 @@ class FtueAuthCombinedLoginFragment :
|
|||||||
|
|
||||||
combine(views.loginInput.editText().textChanges(), views.loginPasswordInput.editText().textChanges()) { account, password ->
|
combine(views.loginInput.editText().textChanges(), views.loginPasswordInput.editText().textChanges()) { account, password ->
|
||||||
views.loginSubmit.isEnabled = account.isNotEmpty() && password.isNotEmpty()
|
views.loginSubmit.isEnabled = account.isNotEmpty() && password.isNotEmpty()
|
||||||
}.launchIn(viewLifecycleOwner.lifecycleScope)
|
}.flowWithLifecycle(lifecycle).launchIn(viewLifecycleOwner.lifecycleScope)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun submit() {
|
private fun submit() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user