Skip to content

feat: shorten android home screen for long deployment-ID lists - #258

Merged
therealaleph merged 1 commit into
therealaleph:mainfrom
dazzling-no-more:feature/andorid-ui-improvements
Apr 26, 2026
Merged

therealaleph merged 1 commit into
therealaleph:mainfrom
dazzling-no-more:feature/andorid-ui-improvements

Conversation

@dazzling-no-more

Copy link
Copy Markdown
Contributor

Summary

Restructures the Android home screen so a long deployment-ID list no longer buries the Connect button or the App Picker selection. Closes #246.

User reported (in Persian): with 10 deployment IDs entered, they had to scroll past the whole list every session to reach Connect; in the App Picker's "only selected apps" mode the chosen apps were scattered through the alphabetical list and hard to find.

Changes

  • Connect/Disconnect pinned under the Mode dropdown. Moved from the bottom of the form to right after the Mode field, so daily users tap it without scrolling regardless of how many IDs they have. Disabled state still acts as the "you're not set up yet" signal — they expand the Apps Script section below to resolve it.
  • Apps Script relay section is now a CollapsibleSection. Same pattern as "SNI pool + tester" and "Advanced". Starts expanded only on first run (no IDs/key yet) so the form is immediately discoverable; collapses by default once the user has IDs configured. Their toggle preference persists via rememberSaveable.
  • Selected apps float to the top of the App Picker. Sort key uses the initial set passed when the dialog opens, not the live selected state — re-checking inside the dialog must not reorder rows under the user's finger. The new ordering takes effect the next time the dialog opens. Stable sort preserves alphabetical order within each group.
  • Updated the stale "next to Start/Stop" comment on the Install MITM button (it's no longer adjacent to Connect) and the top-of-file docstring to reflect the new layout.

Files touched

  • android/app/src/main/java/com/therealaleph/mhrv/ui/HomeScreen.kt — Connect button moved up, Apps Script section wrapped in CollapsibleSection, Install MITM comment refreshed
  • android/app/src/main/java/com/therealaleph/mhrv/ui/AppPickerDialog.kt — pre-selected packages sorted to top of filtered

No new strings — sec_apps_script_relay was already localised in both values/ and values-fa/.

@therealaleph
therealaleph merged commit 81e01d7 into therealaleph:main Apr 26, 2026
therealaleph added a commit that referenced this pull request Apr 26, 2026
Highlights:
- Native udpgw protocol in Full mode (#222) — Telegram voice/video
  calls and Google Meet now work in Full mode on Android. UDP flows
  through one persistent TCP tunnel (instead of session-per-destination)
  so STUN/RTP flow counts no longer stall. Requires redeploying the
  tunnel-node Docker image (ghcr.io/therealaleph/mhrv-tunnel-node:1.7.0).
- Android home screen restructure (#258, closes #246) — Connect button
  now pinned under Mode field, App picker shows pre-selected apps at
  top. With long deployment-ID lists, Connect no longer scrolls
  off-screen.
- release-drafter + prepare-release tooling (#260) — incrementally
  drafts release notes from merged PR titles; manual workflow_dispatch
  prepares version bumps + changelog stubs.

No protocol breaking changes; existing apps_script-mode and Full-mode
deployments work unchanged. Full-mode users get udpgw automatically
once the tunnel-node Docker image is updated.

Thanks to @yyoyoian-pixel and @dazzling-no-more.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@dazzling-no-more
dazzling-no-more deleted the feature/andorid-ui-improvements branch May 16, 2026 17:31
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.

پیشنهاد برای UI

2 participants