Skip to content

Commit f8283e4

Browse files
authored
Merge pull request #8087 from ByeongsuPark/feature/bspark/bugfix-7928-next-button-disabled
Fix the next button disable issue after visiting homeserver screen
2 parents 0971a28 + 6e44f52 commit f8283e4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

changelog.d/7928.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix the next button disabled issue after going to change homeserver screen

vector/src/main/java/im/vector/app/features/onboarding/ftueauth/FtueAuthCombinedLoginFragment.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import android.view.View
2323
import android.view.ViewGroup
2424
import androidx.autofill.HintConstants
2525
import androidx.core.view.isVisible
26+
import androidx.lifecycle.flowWithLifecycle
2627
import androidx.lifecycle.lifecycleScope
2728
import dagger.hilt.android.AndroidEntryPoint
2829
import im.vector.app.R
@@ -103,7 +104,7 @@ class FtueAuthCombinedLoginFragment :
103104

104105
combine(views.loginInput.editText().textChanges(), views.loginPasswordInput.editText().textChanges()) { account, password ->
105106
views.loginSubmit.isEnabled = account.isNotEmpty() && password.isNotEmpty()
106-
}.launchIn(viewLifecycleOwner.lifecycleScope)
107+
}.flowWithLifecycle(lifecycle).launchIn(viewLifecycleOwner.lifecycleScope)
107108
}
108109

109110
private fun submit() {

0 commit comments

Comments
 (0)