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>
This commit is contained in:
1 parent
06625f24dd
commit
96570fffcb
3 files changed
+8
-5
No files matched your search
@@ -26,7 +26,8 @@
|
||||
"mcp__plugin_serena_serena__replace_symbol_body",
|
||||
"mcp__plugin_serena_serena__replace_content",
|
||||
"Bash(git reset:*)",
|
||||
"mcp__plugin_serena_serena__create_text_file"
|
||||
"mcp__plugin_serena_serena__create_text_file",
|
||||
"Bash(powershell:*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user