diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-05 11:21:21 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-05 11:21:21 +0100 |
| commit | a737d52e77c1460a8bfdd510f0792786885c8233 (patch) | |
| tree | e0b94f19c43dc061c7ec478636b4993731f61b33 /app/src | |
| parent | 8829c1def878fbfd6351a8ea0f2c7f350e638b9b (diff) | |
| download | HardenedPass-a737d52e77c1460a8bfdd510f0792786885c8233.tar.gz HardenedPass-a737d52e77c1460a8bfdd510f0792786885c8233.zip | |
fix(app): use the 45 second copy timeout the settings show
The settings screen displayed 45 seconds as the default, but the app used
60. Both now read the same constant.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'app/src')
| -rw-r--r-- | app/src/main/java/app/passwordstore/ui/settings/SettingsScreen.kt | 3 | ||||
| -rw-r--r-- | app/src/main/java/app/passwordstore/util/settings/Constants.kt | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/app/passwordstore/ui/settings/SettingsScreen.kt b/app/src/main/java/app/passwordstore/ui/settings/SettingsScreen.kt index 7d45ad74..d13d1cf5 100644 --- a/app/src/main/java/app/passwordstore/ui/settings/SettingsScreen.kt +++ b/app/src/main/java/app/passwordstore/ui/settings/SettingsScreen.kt @@ -35,6 +35,7 @@ import app.passwordstore.BuildConfig import app.passwordstore.R import app.passwordstore.ui.compose.GroupedSurface import app.passwordstore.util.features.Feature +import app.passwordstore.util.settings.Constants import app.passwordstore.util.settings.PreferenceKeys import kotlinx.collections.immutable.persistentListOf import kotlinx.serialization.Serializable @@ -229,7 +230,7 @@ fun SettingsSectionScreen( summary = stringResource( R.string.pref_clipboard_timeout_summary, - state.clipboardTimeout.ifEmpty { "45" }, + state.clipboardTimeout.ifEmpty { Constants.DEFAULT_DECRYPTION_TIMEOUT.toString() }, ), keyboardType = KeyboardType.Number, ) diff --git a/app/src/main/java/app/passwordstore/util/settings/Constants.kt b/app/src/main/java/app/passwordstore/util/settings/Constants.kt index a0c4b038..2d5760e4 100644 --- a/app/src/main/java/app/passwordstore/util/settings/Constants.kt +++ b/app/src/main/java/app/passwordstore/util/settings/Constants.kt @@ -6,5 +6,5 @@ package app.passwordstore.util.settings object Constants { - const val DEFAULT_DECRYPTION_TIMEOUT = 60 + const val DEFAULT_DECRYPTION_TIMEOUT = 45 } |
