Files
bzForGk2/.claude/settings.local.json
T
hughhuangandClaude Sonnet 4.5 96570fffcb fix: 绕过 Android 8.0+ 隐式广播限制,直接调用 BroadcastReceiver
问题:
- Fragment 中发送的隐式广播在 Android 8.0+ 上被系统阻止
- WallpaperChangeReceiver 无法接收来自 Fragment 的广播
- 导致"下一张"和"立即更换"按钮点击后没有反应

解决方案:
- 直接实例化 WallpaperChangeReceiver
- 调用其 onReceive() 方法,绕过广播系统
- 保留 AlarmScheduler 使用隐式广播(系统发送不受限制)

修改文件:
- CurrentWallpaperFragment.java: showNextWallpaper()
- HomeFragment.java: changeWallpaperNow()

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-24 13:29:22 +08:00

34 lines
1.2 KiB
JSON

{
"permissions": {
"allow": [
"WebSearch",
"Skill(superpowers:writing-plans)",
"Skill(superpowers:subagent-driven-development)",
"Bash(git init:*)",
"Bash(git add:*)",
"Bash(git commit:*)",
"Bash(git push:*)",
"Bash(dir:*)",
"mcp__plugin_context7_context7__resolve-library-id",
"mcp__plugin_playwright_playwright__browser_navigate",
"mcp__plugin_playwright_playwright__browser_type",
"mcp__plugin_playwright_playwright__browser_click",
"mcp__plugin_playwright_playwright__browser_snapshot",
"mcp__plugin_serena_serena__initial_instructions",
"mcp__plugin_serena_serena__get_symbols_overview",
"mcp__plugin_serena_serena__find_file",
"Bash(./gradlew assembleDebug --stacktrace 2>&1:*)",
"Bash(gradle assembleDebug:*)",
"mcp__plugin_serena_serena__list_dir",
"mcp__plugin_serena_serena__read_file",
"mcp__plugin_serena_serena__activate_project",
"mcp__plugin_serena_serena__find_symbol",
"mcp__plugin_serena_serena__replace_symbol_body",
"mcp__plugin_serena_serena__replace_content",
"Bash(git reset:*)",
"mcp__plugin_serena_serena__create_text_file",
"Bash(powershell:*)"
]
}
}