From 4e2fe8c501d1e7700cc2c435bd3dcce11b6f66b4 Mon Sep 17 00:00:00 2001 From: Ramsey Smith <142836716+ramsey-livefront@users.noreply.github.com> Date: Mon, 1 Apr 2024 10:41:29 -0600 Subject: [PATCH] BIT-2150: Incorrect default timeout (#1197) --- .../data/platform/repository/SettingsRepositoryImpl.kt | 2 +- .../data/platform/repository/SettingsRepositoryTest.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/x8bit/bitwarden/data/platform/repository/SettingsRepositoryImpl.kt b/app/src/main/java/com/x8bit/bitwarden/data/platform/repository/SettingsRepositoryImpl.kt index 5afc7f96e..7ae47bac6 100644 --- a/app/src/main/java/com/x8bit/bitwarden/data/platform/repository/SettingsRepositoryImpl.kt +++ b/app/src/main/java/com/x8bit/bitwarden/data/platform/repository/SettingsRepositoryImpl.kt @@ -323,7 +323,7 @@ class SettingsRepositoryImpl( override fun setDefaultsIfNecessary(userId: String) { // Set Vault Settings defaults if (!isVaultTimeoutActionSet(userId = userId)) { - storeVaultTimeout(userId, VaultTimeout.ThirtyMinutes) + storeVaultTimeout(userId, VaultTimeout.FifteenMinutes) storeVaultTimeoutAction(userId, VaultTimeoutAction.LOCK) } } diff --git a/app/src/test/java/com/x8bit/bitwarden/data/platform/repository/SettingsRepositoryTest.kt b/app/src/test/java/com/x8bit/bitwarden/data/platform/repository/SettingsRepositoryTest.kt index 078c89228..39f080c37 100644 --- a/app/src/test/java/com/x8bit/bitwarden/data/platform/repository/SettingsRepositoryTest.kt +++ b/app/src/test/java/com/x8bit/bitwarden/data/platform/repository/SettingsRepositoryTest.kt @@ -78,7 +78,7 @@ class SettingsRepositoryTest { // Calling once sets values assertEquals( - 30, + 15, fakeSettingsDiskSource.getVaultTimeoutInMinutes(userId = userId), ) assertEquals(