@@ -40,9 +40,7 @@ fun SecuritySettingsScreen(
4040 val app = appViewModel ? : return
4141
4242 val isPinEnabled by settings.isPinEnabled.collectAsStateWithLifecycle()
43- val isPinOnLaunchEnabled by settings.isPinOnLaunchEnabled.collectAsStateWithLifecycle()
4443 val isBiometricEnabled by settings.isBiometricEnabled.collectAsStateWithLifecycle()
45- val isPinOnIdleEnabled by settings.isPinOnIdleEnabled.collectAsStateWithLifecycle()
4644 val isPinForPaymentsEnabled by settings.isPinForPaymentsEnabled.collectAsStateWithLifecycle()
4745 val enableSwipeToHideBalance by settings.enableSwipeToHideBalance.collectAsStateWithLifecycle()
4846 val hideBalanceOnOpen by settings.hideBalanceOnOpen.collectAsStateWithLifecycle()
@@ -51,9 +49,7 @@ fun SecuritySettingsScreen(
5149
5250 Content (
5351 isPinEnabled = isPinEnabled,
54- isPinOnLaunchEnabled = isPinOnLaunchEnabled,
5552 isBiometricEnabled = isBiometricEnabled,
56- isPinOnIdleEnabled = isPinOnIdleEnabled,
5753 isPinForPaymentsEnabled = isPinForPaymentsEnabled,
5854 enableSwipeToHideBalance = enableSwipeToHideBalance,
5955 hideBalanceOnOpen = hideBalanceOnOpen,
@@ -70,16 +66,6 @@ fun SecuritySettingsScreen(
7066 onChangePinClick = {
7167 navController.navigateToChangePin()
7268 },
73- onPinOnLaunchClick = {
74- navController.navigateToAuthCheck(
75- onSuccessActionId = AuthCheckAction .TOGGLE_PIN_ON_LAUNCH ,
76- )
77- },
78- onPinOnIdleClick = {
79- navController.navigateToAuthCheck(
80- onSuccessActionId = AuthCheckAction .TOGGLE_PIN_ON_IDLE ,
81- )
82- },
8369 onPinForPaymentsClick = {
8470 navController.navigateToAuthCheck(
8571 onSuccessActionId = AuthCheckAction .TOGGLE_PIN_FOR_PAYMENTS ,
@@ -110,9 +96,7 @@ fun SecuritySettingsScreen(
11096@Composable
11197private fun Content (
11298 isPinEnabled : Boolean ,
113- isPinOnLaunchEnabled : Boolean ,
11499 isBiometricEnabled : Boolean ,
115- isPinOnIdleEnabled : Boolean ,
116100 isPinForPaymentsEnabled : Boolean ,
117101 enableSwipeToHideBalance : Boolean ,
118102 hideBalanceOnOpen : Boolean ,
@@ -121,8 +105,6 @@ private fun Content(
121105 isBiometrySupported : Boolean ,
122106 onPinClick : () -> Unit = {},
123107 onChangePinClick : () -> Unit = {},
124- onPinOnLaunchClick : () -> Unit = {},
125- onPinOnIdleClick : () -> Unit = {},
126108 onPinForPaymentsClick : () -> Unit = {},
127109 onUseBiometricsClick : () -> Unit = {},
128110 onSwipeToHideBalanceClick : () -> Unit = {},
@@ -189,18 +171,6 @@ private fun Content(
189171 onClick = onChangePinClick,
190172 modifier = Modifier .testTag(" PINChange" ),
191173 )
192- SettingsSwitchRow (
193- title = stringResource(R .string.settings__security__pin_launch),
194- isChecked = isPinOnLaunchEnabled,
195- onClick = onPinOnLaunchClick,
196- modifier = Modifier .testTag(" EnablePinOnLaunch" ),
197- )
198- SettingsSwitchRow (
199- title = stringResource(R .string.settings__security__pin_idle),
200- isChecked = isPinOnIdleEnabled,
201- onClick = onPinOnIdleClick,
202- modifier = Modifier .testTag(" EnablePinOnIdle" ),
203- )
204174 SettingsSwitchRow (
205175 title = stringResource(R .string.settings__security__pin_payments),
206176 isChecked = isPinForPaymentsEnabled,
@@ -239,9 +209,7 @@ private fun Preview() {
239209 AppThemeSurface {
240210 Content (
241211 isPinEnabled = true ,
242- isPinOnLaunchEnabled = true ,
243212 isBiometricEnabled = false ,
244- isPinOnIdleEnabled = false ,
245213 isPinForPaymentsEnabled = false ,
246214 enableSwipeToHideBalance = true ,
247215 hideBalanceOnOpen = false ,
0 commit comments