Commit 7fcbaf6
Hide Control PC in service menu when device is locked
- Adds DeviceLockObserver.isKeyguardLocked using KeyguardManager
- Gates the control_pc main menu item on both the direct-boot user-unlocked state and the keyguard not showing, since UserManager.isUserUnlocked stays true after first unlock
- No refresh wiring needed because the main menu rebuilds its items each time it opens
🤖 Auto-generated
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 18d57f2 commit 7fcbaf6
2 files changed
Lines changed: 11 additions & 1 deletion
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
23 | 31 | | |
24 | 32 | | |
25 | 33 | | |
| |||
0 commit comments