mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
BIT-2150: Incorrect default timeout (#1197)
This commit is contained in:
parent
07ddb71cfc
commit
4e2fe8c501
2 changed files with 2 additions and 2 deletions
|
@ -323,7 +323,7 @@ class SettingsRepositoryImpl(
|
||||||
override fun setDefaultsIfNecessary(userId: String) {
|
override fun setDefaultsIfNecessary(userId: String) {
|
||||||
// Set Vault Settings defaults
|
// Set Vault Settings defaults
|
||||||
if (!isVaultTimeoutActionSet(userId = userId)) {
|
if (!isVaultTimeoutActionSet(userId = userId)) {
|
||||||
storeVaultTimeout(userId, VaultTimeout.ThirtyMinutes)
|
storeVaultTimeout(userId, VaultTimeout.FifteenMinutes)
|
||||||
storeVaultTimeoutAction(userId, VaultTimeoutAction.LOCK)
|
storeVaultTimeoutAction(userId, VaultTimeoutAction.LOCK)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,7 @@ class SettingsRepositoryTest {
|
||||||
|
|
||||||
// Calling once sets values
|
// Calling once sets values
|
||||||
assertEquals(
|
assertEquals(
|
||||||
30,
|
15,
|
||||||
fakeSettingsDiskSource.getVaultTimeoutInMinutes(userId = userId),
|
fakeSettingsDiskSource.getVaultTimeoutInMinutes(userId = userId),
|
||||||
)
|
)
|
||||||
assertEquals(
|
assertEquals(
|
||||||
|
|
Loading…
Reference in a new issue