Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

more robust switch actions in pgp settings #3148

Merged

Conversation

agrahn
Copy link
Contributor

@agrahn agrahn commented Aug 3, 2024

The PGP cache settings switches have been robustified a bit more. Now, every enable/disable action of the passphrase cache clears the same to enhance safety. This requires biom. authentification every time. If it fails (error/cancellation) the previous state is reverted to. Moreover, onClick listener is now used instead of onCheckedChange because the correct switch state is rendered immediately after the action has completed (esp. after auth cancellatiion by the user).

Copy link
Member

@msfjarvis msfjarvis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some quick cleanups, you'll have to run ./gradlew ktfmtFormat after applying these changes.

@msfjarvis
Copy link
Member

Changes LGTM bar the stylistic nits, I'll test and merge this over the weekend.

Copy link
Contributor Author

@agrahn agrahn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, now the code looks cleaner.

@msfjarvis msfjarvis added this pull request to the merge queue Aug 4, 2024
Merged via the queue into android-password-store:develop with commit 17a8bbc Aug 4, 2024
6 checks passed
@agrahn agrahn deleted the pgpsettingsswitches branch August 4, 2024 18:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants