Fix app lock issue (#958)

* Fix app lock issue

Fixes #954

Add app lock feature when the app is not in the foreground.

* **Settings Fragment**
  - Add a new setting to specify the time duration after which the app will lock when not in the foreground.
  - Update the UI to include this new setting.

* **Dashboard Activity**
  - Implement logic to lock the app when it goes to the background.
  - Use the new setting to determine the time duration after which the app will lock.
  - Add handlers to manage the lock timeout when the app is paused and resumed.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/yogeshpaliyal/KeyPass/issues/954?shareId=XXXX-XXXX-XXXX-XXXX).

* feat: minor improvements

* feat: minor improvements

* feat: spotless fixes
This commit is contained in:
Yogesh Choudhary Paliyal
2024-09-14 19:41:43 +05:30
committed by GitHub
parent c1822fdef9
commit 7082eddef3
5 changed files with 30 additions and 19 deletions
@@ -8,6 +8,7 @@ const val DEFAULT_PASSWORD_LENGTH = 10f
@Keep
@Serializable
data class UserSettings(
val isDefault: Boolean = false,
val keyPassPassword: String? = null,
val dbPassword: String? = null,
@Deprecated("Use passwordConfig instead")