-
Notifications
You must be signed in to change notification settings - Fork 1
chore: simplify pin options #592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR simplifies PIN authentication by making PIN-on-launch the default behavior when PIN is enabled, while removing the PIN-on-idle feature. This aligns with the Figma V59 design specifications.
Changes:
- Removed PIN-on-launch toggle option since it's now the default behavior when PIN is enabled
- Removed PIN-on-idle feature entirely including its UI components and lifecycle tracking
- Updated authentication logic to check only
isPinEnabledinstead of bothisPinEnabledandisPinOnLaunchEnabled
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| app/src/main/java/to/bitkit/viewmodels/SettingsViewModel.kt | Removed isPinOnIdleEnabled and isPinOnLaunchEnabled state flows and their setters |
| app/src/main/java/to/bitkit/viewmodels/AppViewModel.kt | Simplified authentication check to only verify isPinEnabled and removed isPinOnLaunchEnabled setting when adding PIN |
| app/src/main/java/to/bitkit/ui/settings/SecuritySettingsScreen.kt | Removed PIN-on-launch and PIN-on-idle UI switches and their navigation handlers |
| app/src/main/java/to/bitkit/ui/components/InactivityTracker.kt | Deleted entire file as PIN-on-idle feature is removed |
| app/src/main/java/to/bitkit/ui/components/AuthCheckScreen.kt | Removed TOGGLE_PIN_ON_LAUNCH and TOGGLE_PIN_ON_IDLE action handlers |
| app/src/main/java/to/bitkit/ui/MainActivity.kt | Removed InactivityTracker wrapper component |
| app/src/main/java/to/bitkit/services/MigrationService.kt | Removed isPinOnLaunchEnabled and isPinOnIdleEnabled fields from settings migration |
| app/src/main/java/to/bitkit/data/SettingsStore.kt | Removed isPinOnLaunchEnabled and isPinOnIdleEnabled from SettingsData model |
Fix #421
Fix #542
Figma
Description
This PR updates the Pin options according the Figma V59 version. Now pinOnLaunch is the default behavior when PIN is enabled, and pin on idle was removed
Preview
Screen_recording_20260109_115231.mp4
QA Notes