ktlint
This commit is contained in:
parent
fb46a14172
commit
9a628c7b5d
@ -21,5 +21,4 @@ import im.vector.matrix.android.api.auth.data.HomeServerConnectionConfig
|
|||||||
interface RegistrationService {
|
interface RegistrationService {
|
||||||
|
|
||||||
fun getOrCreateRegistrationWizard(homeServerConnectionConfig: HomeServerConnectionConfig): RegistrationWizard
|
fun getOrCreateRegistrationWizard(homeServerConnectionConfig: HomeServerConnectionConfig): RegistrationWizard
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -27,5 +27,4 @@ interface RegistrationWizard {
|
|||||||
fun performReCaptcha(response: String, callback: MatrixCallback<Session>): Cancelable
|
fun performReCaptcha(response: String, callback: MatrixCallback<Session>): Cancelable
|
||||||
|
|
||||||
// TODO Add other method here
|
// TODO Add other method here
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,6 @@ package im.vector.matrix.android.api.auth.registration
|
|||||||
|
|
||||||
import im.vector.matrix.android.api.util.JsonDict
|
import im.vector.matrix.android.api.util.JsonDict
|
||||||
|
|
||||||
|
|
||||||
sealed class Stage(open val mandatory: Boolean) {
|
sealed class Stage(open val mandatory: Boolean) {
|
||||||
|
|
||||||
// m.login.password
|
// m.login.password
|
||||||
@ -45,7 +44,4 @@ sealed class Stage(open val mandatory: Boolean) {
|
|||||||
data class Other(override val mandatory: Boolean, val type: String, val params: JsonDict?) : Stage(mandatory)
|
data class Other(override val mandatory: Boolean, val type: String, val params: JsonDict?) : Stage(mandatory)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class TermPolicies
|
||||||
class TermPolicies {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
@ -30,5 +30,4 @@ interface Cancelable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
object NoOpCancellable : Cancelable
|
object NoOpCancellable : Cancelable
|
||||||
|
@ -72,7 +72,6 @@ internal class DefaultRegistrationWizard(private val homeServerConnectionConfig:
|
|||||||
), callback)
|
), callback)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private fun performRegistrationRequest(registrationParams: RegistrationParams, callback: MatrixCallback<Session>): Cancelable {
|
private fun performRegistrationRequest(registrationParams: RegistrationParams, callback: MatrixCallback<Session>): Cancelable {
|
||||||
val job = GlobalScope.launch(coroutineDispatchers.main) {
|
val job = GlobalScope.launch(coroutineDispatchers.main) {
|
||||||
val result = runCatching {
|
val result = runCatching {
|
||||||
|
@ -115,7 +115,6 @@ class LoginServerUrlFormFragment @Inject constructor(
|
|||||||
if (serverUrl.startsWith("http").not()) {
|
if (serverUrl.startsWith("http").not()) {
|
||||||
serverUrl = "https://$serverUrl"
|
serverUrl = "https://$serverUrl"
|
||||||
loginServerUrlFormHomeServerUrl.setText(serverUrl)
|
loginServerUrlFormHomeServerUrl.setText(serverUrl)
|
||||||
|
|
||||||
}
|
}
|
||||||
loginViewModel.handle(LoginAction.UpdateHomeServer(serverUrl))
|
loginViewModel.handle(LoginAction.UpdateHomeServer(serverUrl))
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
package im.vector.riotx.features.login
|
package im.vector.riotx.features.login
|
||||||
|
|
||||||
|
|
||||||
import com.airbnb.mvrx.*
|
import com.airbnb.mvrx.*
|
||||||
|
|
||||||
data class LoginViewState(
|
data class LoginViewState(
|
||||||
@ -25,7 +24,6 @@ data class LoginViewState(
|
|||||||
val asyncResetPassword: Async<Unit> = Uninitialized
|
val asyncResetPassword: Async<Unit> = Uninitialized
|
||||||
) : MvRxState {
|
) : MvRxState {
|
||||||
|
|
||||||
|
|
||||||
fun isLoading(): Boolean {
|
fun isLoading(): Boolean {
|
||||||
// TODO Add other async here
|
// TODO Add other async here
|
||||||
return asyncLoginAction is Loading
|
return asyncLoginAction is Loading
|
||||||
@ -38,4 +36,3 @@ data class LoginViewState(
|
|||||||
return asyncLoginAction is Success
|
return asyncLoginAction is Success
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user