Adding TODO to confirm
This commit is contained in:
parent
8115b4b6e6
commit
7df5372d4d
@ -51,8 +51,9 @@ class LoginWebFragment @Inject constructor(
|
|||||||
private val assetReader: AssetReader
|
private val assetReader: AssetReader
|
||||||
) : AbstractLoginFragment<FragmentLoginWebBinding>() {
|
) : AbstractLoginFragment<FragmentLoginWebBinding>() {
|
||||||
|
|
||||||
// TODO confirm the need of this viewModel
|
// TODO I noticed in the Git history this variable was a local variable inside notifyViewModel method
|
||||||
val softLogoutViewModel: SoftLogoutViewModel by activityViewModel()
|
// TODO was there any reason ? To be able to create this ViewModel we must be sure we will have a valid session
|
||||||
|
private val softLogoutViewModel: SoftLogoutViewModel by activityViewModel()
|
||||||
|
|
||||||
override fun getBinding(inflater: LayoutInflater, container: ViewGroup?): FragmentLoginWebBinding {
|
override fun getBinding(inflater: LayoutInflater, container: ViewGroup?): FragmentLoginWebBinding {
|
||||||
return FragmentLoginWebBinding.inflate(inflater, container, false)
|
return FragmentLoginWebBinding.inflate(inflater, container, false)
|
||||||
@ -71,6 +72,7 @@ class LoginWebFragment @Inject constructor(
|
|||||||
override fun updateWithState(state: LoginViewState) {
|
override fun updateWithState(state: LoginViewState) {
|
||||||
setupTitle(state)
|
setupTitle(state)
|
||||||
|
|
||||||
|
// TODO check how it is possible to arrive in this case
|
||||||
isForSessionRecovery = state.deviceId?.isNotBlank() == true
|
isForSessionRecovery = state.deviceId?.isNotBlank() == true
|
||||||
|
|
||||||
if (!isWebViewLoaded) {
|
if (!isWebViewLoaded) {
|
||||||
|
@ -56,8 +56,9 @@ class LoginWebFragment2 @Inject constructor(
|
|||||||
return FragmentLoginWebBinding.inflate(inflater, container, false)
|
return FragmentLoginWebBinding.inflate(inflater, container, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO confirm the need of this viewModel
|
// TODO I noticed in the Git history this variable was a local variable inside notifyViewModel method
|
||||||
val softLogoutViewModel: SoftLogoutViewModel by activityViewModel()
|
// TODO was there any reason ? To be able to create this ViewModel we must be sure we will have a valid session
|
||||||
|
private val softLogoutViewModel: SoftLogoutViewModel by activityViewModel()
|
||||||
|
|
||||||
private var isWebViewLoaded = false
|
private var isWebViewLoaded = false
|
||||||
private var isForSessionRecovery = false
|
private var isForSessionRecovery = false
|
||||||
@ -72,6 +73,7 @@ class LoginWebFragment2 @Inject constructor(
|
|||||||
override fun updateWithState(state: LoginViewState2) {
|
override fun updateWithState(state: LoginViewState2) {
|
||||||
setupTitle(state)
|
setupTitle(state)
|
||||||
|
|
||||||
|
// TODO check how it is possible to arrive in this case
|
||||||
isForSessionRecovery = state.deviceId?.isNotBlank() == true
|
isForSessionRecovery = state.deviceId?.isNotBlank() == true
|
||||||
|
|
||||||
if (!isWebViewLoaded) {
|
if (!isWebViewLoaded) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user