Skip to content

Commit 38268d0

Browse files
W-17867075: [MSDK Android] Login View Custom Bottom App Bar Button In-Operative (#2679)
1 parent ea85cc8 commit 38268d0

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

  • libs/SalesforceSDK/src/com/salesforce/androidsdk/ui/components

libs/SalesforceSDK/src/com/salesforce/androidsdk/ui/components/LoginView.kt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ fun LoginView() {
169169
val customButton =
170170
with(viewModel.customBottomBarButton.value) {
171171
if (this != null) {
172-
LoginViewModel.BottomBarButton(title) { onClick }
172+
LoginViewModel.BottomBarButton(title) { onClick() }
173173
} else null
174174
}
175175

@@ -421,7 +421,7 @@ internal fun ToolTipWrapper(contentDescription: Int, content: @Composable (descr
421421
positionProvider = TooltipDefaults.rememberRichTooltipPositionProvider(),
422422
tooltip = {
423423
RichTooltip(
424-
caretSize = DpSize(PADDING_SIZE. dp, PADDING_SIZE.dp),
424+
caretSize = DpSize(PADDING_SIZE.dp, PADDING_SIZE.dp),
425425
colors = RichTooltipColors(
426426
containerColor = colorScheme.outline,
427427
contentColor = colorScheme.onSecondary,
@@ -688,8 +688,10 @@ private fun BottomBarRedPreview() {
688688
}
689689

690690
@Preview("Light", showBackground = true, heightDp = 100, widthDp = 100)
691-
@Preview("Dark", showBackground = true, heightDp = 100, widthDp = 100,
692-
uiMode = Configuration.UI_MODE_NIGHT_YES, backgroundColor = 0xFF181818)
691+
@Preview(
692+
"Dark", showBackground = true, heightDp = 100, widthDp = 100,
693+
uiMode = Configuration.UI_MODE_NIGHT_YES, backgroundColor = 0xFF181818
694+
)
693695
@Composable
694696
private fun TooltipPreview() {
695697
MaterialTheme(colorScheme = if (isSystemInDarkTheme()) sfDarkColors() else sfLightColors()) {
@@ -716,4 +718,4 @@ private fun TooltipPreview() {
716718
}
717719
}
718720
}
719-
}
721+
}

0 commit comments

Comments
 (0)