Skip to content

Development environment setup#4

Merged
yunnysunny merged 4 commits into
mainfrom
cursor/fix-menu-focus-switching-f9dc
May 2, 2026
Merged

Development environment setup#4
yunnysunny merged 4 commits into
mainfrom
cursor/fix-menu-focus-switching-f9dc

Conversation

@yunnysunny
Copy link
Copy Markdown
Member

@yunnysunny yunnysunny commented May 1, 2026

Summary

  • Remove unreachable handleFocusBoundary fallback from SettingsCollapsibleFragment because the same menu/submenu focus transitions return before FocusFinder runs.
  • Drop redundant focused != null checks after the panel descendant guard guarantees a focused view within the settings panel.

Testing

  • ./gradlew testDebugUnitTest --no-daemon — passed
  • ./gradlew assembleDebug --no-daemon — passed
Open in Web Open in Cursor 

cursoragent and others added 2 commits May 1, 2026 03:40
Co-authored-by: gaoyang2024 <gaoyang2024@users.noreply.github.com>
P0: FocusFinder 返回 null 时焦点卡死 — 增加 handleFocusBoundary 回退逻辑
P0: 主菜单按左键无法进入已展开子菜单 — 增加 DPAD_LEFT 显式处理与 focusSubmenuFirstItem
P1: 频道列表自动隐藏后焦点丢失 — hideChannelListIdleRunnable 和 hideOverlay 中恢复焦点
P1: 频道列表按返回键直接弹退出对话框 — BACK 键先关闭频道列表
P2: 焦点路过主菜单项导致子菜单频繁重建 — onMainMenuItemFocused 增加 150ms 防抖
P3: ACTION_UP 事件泄漏 — 增加 onKeyUp 拦截 + dispatchDrawerKey 同时转发 ACTION_UP

Co-authored-by: gaoyang2024 <gaoyang2024@users.noreply.github.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented May 1, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6b4c9b2. Configure here.

cursoragent and others added 2 commits May 2, 2026 00:55
Co-authored-by: 白一梓 <yunnysunny@gmail.com>
Co-authored-by: 白一梓 <yunnysunny@gmail.com>
@yunnysunny yunnysunny merged commit 0847386 into main May 2, 2026
1 check passed
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.

2 participants