Skip to content

Close HUB-05: drop dead android navigation checks - #270

Merged
guofoo merged 1 commit into
mainfrom
fix/hub-05-cleanups
Oct 3, 2026
Merged

guofoo merged 1 commit into
mainfrom
fix/hub-05-cleanups

Conversation

@guofoo

@guofoo guofoo commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Resolves the two points left in phone/BACKLOG.md HUB-05 (P3, small cleanups after the App Hub merge):

  • Dead android conditions in crates/shell/src/mobile_surface.rs are removed. The non-floating navigation branch runs only where mobile_navigation::ENABLED is false, and it's cfg!(any(target_os = "android", target_env = "ohos")), so that branch never runs on Android.

    • The band's if android {…taller band…} else {bottom} is now bottom.
    • The pill's else if !(android && phone.insets.bottom > 0.0) is now else.

    Nothing changes on any target. The android binding is still used above for the status bar.

  • apps::is_linked stays. The backlog listed it as test-only. Since Makepad's apps as native apps: Calculator, Clock, Notes, Reminders and Weather with their own agents; Task as a process app #309, native_system_tools (crates/shell/src/system_chat/grants.rs) calls it to tell which native apps this build links. An earlier version of this PR removed it; that would no longer build on main.

The HUB-05 entry is marked done, and says why is_linked stays.

Checks

Rebased on main 3afb9720 (2026-10-03).

tools/ci-local.sh --only desktop,phone,apps on c80a3849 (clean tree): PASSED, 33 of 33 steps, none skipped, 27m09s, Darwin arm64. The apps.yml jobs GitHub runs on ubuntu-latest ran on macOS here.

@guofoo
guofoo force-pushed the fix/hub-05-cleanups branch from ed790e9 to 55771cc Compare October 2, 2026 18:32
mobile_surface's non-floating navigation branch runs only where
mobile_navigation::ENABLED is false, which is never on Android, so its
`if android` band height and `!(android && insets.bottom > 0)` pill
condition could not hold; the band is `bottom` and the pill always draws.

apps::is_linked, the other HUB-05 point, is no longer test-only: since
#309 native_system_tools calls it, so it stays. BACKLOG.md says so.
@guofoo
guofoo force-pushed the fix/hub-05-cleanups branch from 55771cc to c80a384 Compare October 3, 2026 07:47
@guofoo guofoo changed the title Close HUB-05: drop apps::is_linked and dead android navigation checks Close HUB-05: drop dead android navigation checks Oct 3, 2026
@guofoo
guofoo merged commit d31edf4 into main Oct 3, 2026
5 checks passed
@guofoo
guofoo deleted the fix/hub-05-cleanups branch October 5, 2026 20:01
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.

1 participant