Skip to content

Commit 20d4c72

Browse files
committed
Fix button action and bio auth bypass on RN.
1 parent 007e523 commit 20d4c72

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

libs/SalesforceSDK/src/com/salesforce/androidsdk/security/AppLockManager.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ internal abstract class AppLockManager(
5656
}
5757

5858
fun onAppBackgrounded() {
59-
lastBackgroundTimestamp = System.currentTimeMillis()
59+
if (!locked) {
60+
lastBackgroundTimestamp = System.currentTimeMillis()
61+
}
6062
}
6163

6264
fun onUnlock() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ fun LoginView() {
163163
LoginViewModel.BottomBarButton(
164164
stringResource(viewModel.biometricAuthenticationButtonText.intValue)
165165
) {
166-
viewModel.biometricAuthenticationButtonAction
166+
viewModel.biometricAuthenticationButtonAction.value?.invoke() ?: activity.onBioAuthClick()
167167
}
168168
} else null
169169
val idpButton =

0 commit comments

Comments
 (0)