mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 17:35:54 +03:00
Fix layout after try again button is clicked.
This commit is contained in:
parent
67be8c3c40
commit
0c52a7ed04
2 changed files with 7 additions and 1 deletions
|
@ -24,6 +24,7 @@ import com.airbnb.mvrx.Mavericks
|
||||||
import com.airbnb.mvrx.viewModel
|
import com.airbnb.mvrx.viewModel
|
||||||
import dagger.hilt.android.AndroidEntryPoint
|
import dagger.hilt.android.AndroidEntryPoint
|
||||||
import im.vector.app.core.extensions.addFragment
|
import im.vector.app.core.extensions.addFragment
|
||||||
|
import im.vector.app.core.extensions.replaceFragment
|
||||||
import im.vector.app.core.platform.SimpleFragmentActivity
|
import im.vector.app.core.platform.SimpleFragmentActivity
|
||||||
import im.vector.app.features.home.HomeActivity
|
import im.vector.app.features.home.HomeActivity
|
||||||
import im.vector.lib.core.utils.compat.getParcelableCompat
|
import im.vector.lib.core.utils.compat.getParcelableCompat
|
||||||
|
@ -66,7 +67,7 @@ class QrCodeLoginActivity : SimpleFragmentActivity() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun showInstructionsFragment(qrCodeLoginArgs: QrCodeLoginArgs) {
|
private fun showInstructionsFragment(qrCodeLoginArgs: QrCodeLoginArgs) {
|
||||||
addFragment(
|
replaceFragment(
|
||||||
views.container,
|
views.container,
|
||||||
QrCodeLoginInstructionsFragment::class.java,
|
QrCodeLoginInstructionsFragment::class.java,
|
||||||
qrCodeLoginArgs,
|
qrCodeLoginArgs,
|
||||||
|
|
|
@ -59,6 +59,11 @@ class QrCodeLoginViewModel @AssistedInject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun handleTryAgain() {
|
private fun handleTryAgain() {
|
||||||
|
setState {
|
||||||
|
copy(
|
||||||
|
connectionStatus = null
|
||||||
|
)
|
||||||
|
}
|
||||||
_viewEvents.post(QrCodeLoginViewEvents.NavigateToInitialScreen)
|
_viewEvents.post(QrCodeLoginViewEvents.NavigateToInitialScreen)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue