mirror of
https://github.com/bitwarden/android.git
synced 2024-11-21 08:55:48 +03:00
Use 100 character line limit for detekt (#50)
This commit is contained in:
parent
dd4b937061
commit
9e1ab9ad25
4 changed files with 36 additions and 11 deletions
|
@ -84,7 +84,11 @@ fun LoginScreen(
|
|||
}
|
||||
// TODO Get the "login target" from a dropdown (BIT-202)
|
||||
Text(
|
||||
text = stringResource(id = R.string.log_in_attempt_by_x_on_y, state.emailAddress, "bitwarden.com"),
|
||||
text = stringResource(
|
||||
id = R.string.log_in_attempt_by_x_on_y,
|
||||
state.emailAddress,
|
||||
"bitwarden.com",
|
||||
),
|
||||
color = MaterialTheme.colorScheme.primary,
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
)
|
||||
|
|
|
@ -22,7 +22,9 @@ import androidx.compose.ui.unit.dp
|
|||
*
|
||||
* TODO: remove deprecated version: BIT-289
|
||||
*/
|
||||
@Deprecated(message = "Use overloaded BitwardenTextField that takes an input instead of an initialText.")
|
||||
@Deprecated(
|
||||
message = "Use overloaded BitwardenTextField that takes an input instead of an initialText.",
|
||||
)
|
||||
@Composable
|
||||
fun BitwardenTextField(
|
||||
label: String,
|
||||
|
|
|
@ -43,19 +43,38 @@ fun VaultUnlockedNavBarScreen(
|
|||
navController.apply {
|
||||
val navOptions = vaultUnlockedNavBarScreenNavOptions()
|
||||
when (event) {
|
||||
VaultUnlockedNavBarEvent.NavigateToVaultScreen -> navigateToVault(navOptions)
|
||||
VaultUnlockedNavBarEvent.NavigateToSendScreen -> navigateToSend(navOptions)
|
||||
VaultUnlockedNavBarEvent.NavigateToGeneratorScreen -> navigateToGenerator(navOptions)
|
||||
VaultUnlockedNavBarEvent.NavigateToSettingsScreen -> navigateToSettings(navOptions)
|
||||
VaultUnlockedNavBarEvent.NavigateToVaultScreen -> {
|
||||
navigateToVault(navOptions)
|
||||
}
|
||||
|
||||
VaultUnlockedNavBarEvent.NavigateToSendScreen -> {
|
||||
navigateToSend(navOptions)
|
||||
}
|
||||
|
||||
VaultUnlockedNavBarEvent.NavigateToGeneratorScreen -> {
|
||||
navigateToGenerator(navOptions)
|
||||
}
|
||||
|
||||
VaultUnlockedNavBarEvent.NavigateToSettingsScreen -> {
|
||||
navigateToSettings(navOptions)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
VaultUnlockedNavBarScaffold(
|
||||
navController = navController,
|
||||
generatorTabClickedAction = { viewModel.trySendAction(VaultUnlockedNavBarAction.GeneratorTabClick) },
|
||||
sendTabClickedAction = { viewModel.trySendAction(VaultUnlockedNavBarAction.SendTabClick) },
|
||||
vaultTabClickedAction = { viewModel.trySendAction(VaultUnlockedNavBarAction.VaultTabClick) },
|
||||
settingsTabClickedAction = { viewModel.trySendAction(VaultUnlockedNavBarAction.SettingsTabClick) },
|
||||
generatorTabClickedAction = {
|
||||
viewModel.trySendAction(VaultUnlockedNavBarAction.GeneratorTabClick)
|
||||
},
|
||||
sendTabClickedAction = {
|
||||
viewModel.trySendAction(VaultUnlockedNavBarAction.SendTabClick)
|
||||
},
|
||||
vaultTabClickedAction = {
|
||||
viewModel.trySendAction(VaultUnlockedNavBarAction.VaultTabClick)
|
||||
},
|
||||
settingsTabClickedAction = {
|
||||
viewModel.trySendAction(VaultUnlockedNavBarAction.SettingsTabClick)
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -566,7 +566,7 @@ style:
|
|||
active: false
|
||||
MaxLineLength:
|
||||
active: true
|
||||
maxLineLength: 120
|
||||
maxLineLength: 100
|
||||
excludePackageStatements: true
|
||||
excludeImportStatements: true
|
||||
excludeCommentStatements: false
|
||||
|
|
Loading…
Reference in a new issue