mirror of
https://github.com/element-hq/element-android
synced 2024-11-23 18:05:36 +03:00
Detekt: fix FunctionParameterNaming
This commit is contained in:
parent
c303b9afd3
commit
6f3b9c78b0
3 changed files with 6 additions and 9 deletions
|
@ -61,9 +61,6 @@ complexity:
|
|||
active: false
|
||||
|
||||
naming:
|
||||
FunctionParameterNaming:
|
||||
# TODO Enable it
|
||||
active: false
|
||||
VariableNaming:
|
||||
# TODO Enable it
|
||||
active: false
|
||||
|
|
|
@ -309,9 +309,9 @@ class Login2Variant(
|
|||
activity.finish()
|
||||
}
|
||||
|
||||
private fun updateWithState(LoginViewState2: LoginViewState2) {
|
||||
private fun updateWithState(loginViewState2: LoginViewState2) {
|
||||
// Loading
|
||||
setIsLoading(LoginViewState2.isLoading)
|
||||
setIsLoading(loginViewState2.isLoading)
|
||||
}
|
||||
|
||||
// Hack for AccountCreatedFragment
|
||||
|
|
|
@ -288,8 +288,8 @@ class FtueAuthVariant(
|
|||
.show()
|
||||
}
|
||||
|
||||
private fun onServerSelectionDone(OnboardingViewEvents: OnboardingViewEvents.OnServerSelectionDone) {
|
||||
when (OnboardingViewEvents.serverType) {
|
||||
private fun onServerSelectionDone(onboardingViewEvents: OnboardingViewEvents.OnServerSelectionDone) {
|
||||
when (onboardingViewEvents.serverType) {
|
||||
ServerType.MatrixOrg -> Unit // In this case, we wait for the login flow
|
||||
ServerType.EMS,
|
||||
ServerType.Other -> activity.addFragmentToBackstack(
|
||||
|
@ -301,9 +301,9 @@ class FtueAuthVariant(
|
|||
}
|
||||
}
|
||||
|
||||
private fun onSignModeSelected(OnboardingViewEvents: OnboardingViewEvents.OnSignModeSelected) = withState(onboardingViewModel) { state ->
|
||||
private fun onSignModeSelected(onboardingViewEvents: OnboardingViewEvents.OnSignModeSelected) = withState(onboardingViewModel) { state ->
|
||||
// state.signMode could not be ready yet. So use value from the ViewEvent
|
||||
when (OnboardingViewEvents.signMode) {
|
||||
when (onboardingViewEvents.signMode) {
|
||||
SignMode.Unknown -> error("Sign mode has to be set before calling this method")
|
||||
SignMode.SignUp -> Unit // This case is processed in handleOnboardingViewEvents
|
||||
SignMode.SignIn -> handleSignInSelected(state)
|
||||
|
|
Loading…
Reference in a new issue