Build: (d5e2608) Add password hint field (#970)

* Add password hint field

Fixes #957

Add a password hint field to the authentication screen.

* **UserSettings.kt**: Add a new property `passwordHint` of type `String?` to the `UserSettings` data class.
* **SharedPreferenceUtils.kt**: Add functions `setPasswordHint` and `getPasswordHint` to save and retrieve the password hint in the `UserSettings` data store.
* **AuthScreen.kt**: Add a new state variable `passwordHint` to store the password hint. Add an `OutlinedTextField` for the password hint in the `Column` layout. Update the `ButtonBar` call to pass the `passwordHint` state variable.
* **ButtonBar.kt**: Add a new parameter `passwordHint` to the `ButtonBar` composable function. Update the `onClick` handler for the `Button` to save the password hint using the `setPasswordHint` function.
* **strings.xml**: Add a new string resource `enter_password_hint` with the value "Enter password hint".

---

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

* feat: add password hint
This commit is contained in:
yogeshpaliyal
2024-09-14 11:33:15 +00:00
parent a322739c1d
commit 1a52924e8d
2 changed files with 2 additions and 2 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long