mirror of
https://github.com/bitwarden/android.git
synced 2024-11-21 17:05:44 +03:00
Fix typos in generator actions (#4310)
This commit is contained in:
parent
d125fab0b7
commit
1b0bc13903
4 changed files with 11 additions and 11 deletions
|
@ -213,7 +213,7 @@ class GeneratorViewModel @Inject constructor(
|
||||||
handleUpdateGeneratedPassphraseResult(action)
|
handleUpdateGeneratedPassphraseResult(action)
|
||||||
}
|
}
|
||||||
|
|
||||||
is GeneratorAction.Internal.UpdateGeneratedPlusAddessedUsernameResult -> {
|
is GeneratorAction.Internal.UpdateGeneratedPlusAddressedUsernameResult -> {
|
||||||
handleUpdatePlusAddressedGeneratedUsernameResult(action)
|
handleUpdatePlusAddressedGeneratedUsernameResult(action)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -676,7 +676,7 @@ class GeneratorViewModel @Inject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun handleUpdatePlusAddressedGeneratedUsernameResult(
|
private fun handleUpdatePlusAddressedGeneratedUsernameResult(
|
||||||
action: GeneratorAction.Internal.UpdateGeneratedPlusAddessedUsernameResult,
|
action: GeneratorAction.Internal.UpdateGeneratedPlusAddressedUsernameResult,
|
||||||
) {
|
) {
|
||||||
when (val result = action.result) {
|
when (val result = action.result) {
|
||||||
is GeneratedPlusAddressedUsernameResult.Success -> {
|
is GeneratedPlusAddressedUsernameResult.Success -> {
|
||||||
|
@ -809,7 +809,7 @@ class GeneratorViewModel @Inject constructor(
|
||||||
handleMinSpecialChange(action)
|
handleMinSpecialChange(action)
|
||||||
}
|
}
|
||||||
|
|
||||||
is GeneratorAction.MainType.Password.ToggleAvoidAmbigousCharactersChange -> {
|
is GeneratorAction.MainType.Password.ToggleAvoidAmbiguousCharactersChange -> {
|
||||||
handleToggleAmbiguousChars(action)
|
handleToggleAmbiguousChars(action)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -895,7 +895,7 @@ class GeneratorViewModel @Inject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun handleToggleAmbiguousChars(
|
private fun handleToggleAmbiguousChars(
|
||||||
action: GeneratorAction.MainType.Password.ToggleAvoidAmbigousCharactersChange,
|
action: GeneratorAction.MainType.Password.ToggleAvoidAmbiguousCharactersChange,
|
||||||
) {
|
) {
|
||||||
updatePasswordType { currentPasswordType ->
|
updatePasswordType { currentPasswordType ->
|
||||||
currentPasswordType.copy(
|
currentPasswordType.copy(
|
||||||
|
@ -1440,7 +1440,7 @@ class GeneratorViewModel @Inject constructor(
|
||||||
email = plusAddressedEmail.email,
|
email = plusAddressedEmail.email,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
sendAction(GeneratorAction.Internal.UpdateGeneratedPlusAddessedUsernameResult(result))
|
sendAction(GeneratorAction.Internal.UpdateGeneratedPlusAddressedUsernameResult(result))
|
||||||
}
|
}
|
||||||
|
|
||||||
private suspend fun generateCatchAllEmail(catchAllEmail: CatchAllEmail) {
|
private suspend fun generateCatchAllEmail(catchAllEmail: CatchAllEmail) {
|
||||||
|
@ -2264,7 +2264,7 @@ sealed class GeneratorAction {
|
||||||
* @property avoidAmbiguousChars Flag indicating whether ambiguous characters
|
* @property avoidAmbiguousChars Flag indicating whether ambiguous characters
|
||||||
* should be avoided.
|
* should be avoided.
|
||||||
*/
|
*/
|
||||||
data class ToggleAvoidAmbigousCharactersChange(
|
data class ToggleAvoidAmbiguousCharactersChange(
|
||||||
val avoidAmbiguousChars: Boolean,
|
val avoidAmbiguousChars: Boolean,
|
||||||
) : Password()
|
) : Password()
|
||||||
}
|
}
|
||||||
|
@ -2519,7 +2519,7 @@ sealed class GeneratorAction {
|
||||||
/**
|
/**
|
||||||
* Indicates a generated text update is received.
|
* Indicates a generated text update is received.
|
||||||
*/
|
*/
|
||||||
data class UpdateGeneratedPlusAddessedUsernameResult(
|
data class UpdateGeneratedPlusAddressedUsernameResult(
|
||||||
val result: GeneratedPlusAddressedUsernameResult,
|
val result: GeneratedPlusAddressedUsernameResult,
|
||||||
) : Internal()
|
) : Internal()
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,7 @@ data class PasswordHandlers(
|
||||||
},
|
},
|
||||||
onPasswordToggleAvoidAmbiguousCharsChange = { shouldAvoidAmbiguousChars ->
|
onPasswordToggleAvoidAmbiguousCharsChange = { shouldAvoidAmbiguousChars ->
|
||||||
viewModel.trySendAction(
|
viewModel.trySendAction(
|
||||||
GeneratorAction.MainType.Password.ToggleAvoidAmbigousCharactersChange(
|
GeneratorAction.MainType.Password.ToggleAvoidAmbiguousCharactersChange(
|
||||||
avoidAmbiguousChars = shouldAvoidAmbiguousChars,
|
avoidAmbiguousChars = shouldAvoidAmbiguousChars,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
@ -591,7 +591,7 @@ class GeneratorScreenTest : BaseComposeTest() {
|
||||||
|
|
||||||
verify {
|
verify {
|
||||||
viewModel.trySendAction(
|
viewModel.trySendAction(
|
||||||
GeneratorAction.MainType.Password.ToggleAvoidAmbigousCharactersChange(
|
GeneratorAction.MainType.Password.ToggleAvoidAmbiguousCharactersChange(
|
||||||
avoidAmbiguousChars = true,
|
avoidAmbiguousChars = true,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
@ -646,7 +646,7 @@ class GeneratorScreenTest : BaseComposeTest() {
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
viewModel.trySendAction(
|
viewModel.trySendAction(
|
||||||
GeneratorAction.MainType.Password.ToggleAvoidAmbigousCharactersChange(
|
GeneratorAction.MainType.Password.ToggleAvoidAmbiguousCharactersChange(
|
||||||
avoidAmbiguousChars = true,
|
avoidAmbiguousChars = true,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
@ -1325,7 +1325,7 @@ class GeneratorViewModelTest : BaseViewModelTest() {
|
||||||
val avoidAmbiguousChars = true
|
val avoidAmbiguousChars = true
|
||||||
|
|
||||||
viewModel.trySendAction(
|
viewModel.trySendAction(
|
||||||
GeneratorAction.MainType.Password.ToggleAvoidAmbigousCharactersChange(
|
GeneratorAction.MainType.Password.ToggleAvoidAmbiguousCharactersChange(
|
||||||
avoidAmbiguousChars = avoidAmbiguousChars,
|
avoidAmbiguousChars = avoidAmbiguousChars,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue