Repository navigation
TV UI: Settings screen - #6550
Open
eliotcougar wants to merge 4 commits into
Open
eliotcougar wants to merge 4 commits into
eliotcougar wants to merge 4 commits into
Conversation
Move preference keys, defaults, conditions and handlers to the Settings form. Keep the existing mobile Scaffold and Compose controls behind a small Settings-only presentation interface.
Route Settings from the TV drawer only. Reuse upstream TV focus and keyboard controls with separate settings rows and dialogs, keeping the shared form and ViewModel behavior intact.
Leave focus restoration in the TV renderer and focus the current option once per picker opening. Keep the proxy password visible inside the TV editor only. Keep the phone controls, setting definitions, and handlers unchanged.
2dust
reviewed
Nov 30, 2026
| import com.v2ray.ang.util.LogUtil | ||
| import com.v2ray.ang.util.Utils | ||
| import com.v2ray.ang.ui.settings.SettingsForm | ||
| import com.v2ray.ang.ui.settings.SettingsRows |
Owner
There was a problem hiding this comment.
最好不要给原来的代码做修改了。
tv 的如果重名了可以加上 tv 前缀
Owner
|
还有不要想 ui 的代码共用,如果是业务代码请放到 vm 中,如果是 ui 代码复制后再修改,代码重复了没有关系,就是要分离 |
Owner
|
原则就是 tv ui 如果和 mobile 不同就全新重写,不要修改原来的 ui 适配 tv。 |
Restore upstream mobile Settings and remove the shared row interface. Place the TV form and controls under ui.tv.settings and preserve the existing SettingsViewModel and preference behavior.
eliotcougar
marked this pull request as ready for review
November 30, 2026 17:53
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.
Scope
Adds a dedicated Settings screen under
ui.tv.settingsfollowing the upstream UI separation guidance. The TV drawer opens it directly; the phone drawer still opens the existing mobile Settings activity. This replaces the pre-refactor approach in #6447 and targetsmasterdirectly. It does not add preferences, migrate stored data, or change VPN or core behavior.What stays shared and what stays separate
ui.mobile.composechange.Question for @2dust
Does sharing the existing preference definitions through
SettingsFormfit the architecture you want? It keeps a new setting in one place while leaving both UI implementations independent. Or would you prefer separate form declarations undermobileandtv, with sharing limited to the Settings ViewModel and underlying state/actions? The first commit isolates the form extraction so you can review that choice on its own before looking at the TV screen.Validation