Login screens: add some doc

This commit is contained in:
Benoit Marty 2019-11-14 17:46:53 +01:00
parent 7f1f98c2e5
commit 3c93807fe6
5 changed files with 7 additions and 6 deletions

View File

@ -32,11 +32,12 @@ import kotlinx.android.synthetic.main.fragment_login.*
import javax.inject.Inject import javax.inject.Inject
/** /**
* What can be improved: * In this screen, the user is asked for login and password to sign in to a homeserver.
* - When filtering more (when entering new chars), we could filter on result we already have, during the new server request, to avoid empty screen effect * He also can reset his password
*/ */
class LoginFragment @Inject constructor() : AbstractLoginFragment() { class LoginFragment @Inject constructor() : AbstractLoginFragment() {
// TODO Move to viewState?
private var passwordShown = false private var passwordShown = false
override fun getLayoutResId() = R.layout.fragment_login override fun getLayoutResId() = R.layout.fragment_login

View File

@ -27,7 +27,7 @@ import me.gujun.android.span.span
import javax.inject.Inject import javax.inject.Inject
/** /**
* * In this screen, the user will choose between matrix.org, modular or other type of homeserver
*/ */
class LoginServerSelectionFragment @Inject constructor() : AbstractLoginFragment() { class LoginServerSelectionFragment @Inject constructor() : AbstractLoginFragment() {

View File

@ -31,7 +31,7 @@ import kotlinx.android.synthetic.main.fragment_login_server_url_form.*
import javax.inject.Inject import javax.inject.Inject
/** /**
* * In this screen, the user is prompted to enter a homeserver url
*/ */
class LoginServerUrlFormFragment @Inject constructor( class LoginServerUrlFormFragment @Inject constructor(
private val errorFormatter: ErrorFormatter private val errorFormatter: ErrorFormatter

View File

@ -24,7 +24,7 @@ import kotlinx.android.synthetic.main.fragment_login_signup_signin_selection.*
import javax.inject.Inject import javax.inject.Inject
/** /**
* * In this screen, the user is asked to sign up or to sign in to the homeserver
*/ */
class LoginSignUpSignInSelectionFragment @Inject constructor() : AbstractLoginFragment() { class LoginSignUpSignInSelectionFragment @Inject constructor() : AbstractLoginFragment() {

View File

@ -21,7 +21,7 @@ import im.vector.riotx.R
import javax.inject.Inject import javax.inject.Inject
/** /**
* * In this screen, the user is viewing an introduction to what he can do with this application
*/ */
class LoginSplashFragment @Inject constructor() : AbstractLoginFragment() { class LoginSplashFragment @Inject constructor() : AbstractLoginFragment() {