Commit 233cb39
committed
fix: support Compose previews for biometric authentication on Android
- Update `rememberBiometricPlatformWrapper` to check `LocalInspectionMode` and provide a fallback `FragmentActivity` instance during previews.
- Prevent ClassCastExceptions in Compose Preview by avoiding the cast of `LocalActivity.current` when in inspection mode.
- Update `SignInScreenPreview` to explicitly enable biometric visibility for layout verification.1 parent df03fed commit 233cb39
2 files changed
Lines changed: 6 additions & 2 deletions
File tree
- app/android/src/main/java/com/softartdev/notedelight
- core/ui/src/androidMain/kotlin/com/softartdev/notedelight/ui
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
0 commit comments