Skip to content

Conversation

@jvsena42
Copy link
Member

@jvsena42 jvsena42 commented Jan 9, 2026

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

  • Use preferably a physical device, to be able to test biometrics

@jvsena42 jvsena42 requested a review from Copilot January 9, 2026 14:26
@jvsena42 jvsena42 self-assigned this Jan 9, 2026
Copy link
Contributor

Copilot AI left a 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 isPinEnabled instead of both isPinEnabled and isPinOnLaunchEnabled

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

@jvsena42 jvsena42 changed the title Chore/simplify pin options chore: simplify pin options Jan 9, 2026
@jvsena42 jvsena42 marked this pull request as ready for review January 9, 2026 14:58
@jvsena42
Copy link
Member Author

jvsena42 commented Jan 9, 2026

@jvsena42 jvsena42 requested a review from ovitrif January 9, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PIN Setting is too aggressive Recovery Mode - Bio auth doesn't respect disabled pin on launch

2 participants