Skip to content

Commit

Permalink
Merge branch 'feature/hughns/qr_code_login' of https://github.com/vec…
Browse files Browse the repository at this point in the history
…tor-im/element-android into feature/hughns/qr_code_login
  • Loading branch information
hughns committed Oct 19, 2022
2 parents 4f652f1 + 0c52a7e commit 025a89f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import com.airbnb.mvrx.Mavericks
import com.airbnb.mvrx.viewModel
import dagger.hilt.android.AndroidEntryPoint
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.features.home.HomeActivity
import im.vector.lib.core.utils.compat.getParcelableCompat
Expand Down Expand Up @@ -66,7 +67,7 @@ class QrCodeLoginActivity : SimpleFragmentActivity() {
}

private fun showInstructionsFragment(qrCodeLoginArgs: QrCodeLoginArgs) {
addFragment(
replaceFragment(
views.container,
QrCodeLoginInstructionsFragment::class.java,
qrCodeLoginArgs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ class QrCodeLoginViewModel @AssistedInject constructor(
}

private fun handleTryAgain() {
setState {
copy(
connectionStatus = null
)
}
_viewEvents.post(QrCodeLoginViewEvents.NavigateToInitialScreen)
}

Expand Down

0 comments on commit 025a89f

Please sign in to comment.