feat: Add home screen widget for one-click proxy toggle#1167
Open
cjb2667 wants to merge 1 commit intoMatsuriDayo:mainfrom
Open
feat: Add home screen widget for one-click proxy toggle#1167cjb2667 wants to merge 1 commit intoMatsuriDayo:mainfrom
cjb2667 wants to merge 1 commit intoMatsuriDayo:mainfrom
Conversation
新增 1x1 大小的桌面小组件(Home Screen Widget),通过电源图标按钮 一键控制 VPN/代理服务的启停。小组件背景色随服务状态实时变化: - 深灰色:已断开 - 粉色:已连接 - 橙色:连接中/停止中 小组件运行在 :bg 进程,与代理服务共享状态,响应即时。 支持英文、简体中文、繁体中文三种语言。 Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
:bgprocess for instant state synchronization with the proxy serviceChanges
ProxyToggleWidget.kt— AppWidgetProvider with toggle and state update logicBaseService.kt— triggers widget update on state changeAndroidManifest.xml— registers the widget receiverConstants.kt— addsWIDGET_UPDATEactionstrings.xml(en, zh-CN, zh-TW) — adds widget-related stringsTest plan
Made with Cursor