Commit Graph
13 Commits
Author SHA1 Message Date
Claude 3f64b32df8 Snap widgets to whole rows and let apps fill the cells beside them
Home rows now share one height (an app tile's) and widgets span whole rows of
it, so they line up with the apps. The grid packs densely, so apps fill free
cells next to a widget instead of leaving holes. Resizing snaps to whole rows.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYASJ6JNxhYwNNJK7ypK2V
2026-10-22 02:17:11 +00:00
Claude 8426bd3b0a Update the launcher in place from the launcher-latest release
CI stamps each APK's versionCode with the workflow run number and uploads
version.json next to it. The launcher checks that file on start (at most
every 6 hours) and from a new "Check for updates" item in the home menu;
when it is newer, it streams the APK into a PackageInstaller session and
commits it, so Android asks to confirm (or, on Android 12+ once the
launcher installed itself, may install it without asking).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K2oqEoAKVaiTwCNSqRHQUn
2026-10-22 01:14:41 +00:00
Claude 9278de14aa Move a widget by dragging it while it shows resize handles
Holding a widget and letting go puts it in edit mode (resize handles). Now
pressing the widget's body in that mode picks it up right away, without
another long press: drag it to a new spot and it drops back into edit mode
so it can be resized or moved again. The handles still resize. Natively, the
page marks the widget in edit mode in placeWidgets, and its WidgetView takes
the press as a drag (widgetGrab) instead of passing it to the widget.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0126xtn5CLB47ph1Njd7frgW
2026-10-22 00:26:34 +00:00
Claude be2371deb0 Focus the drawer's search and raise the keyboard when the drawer opens
Swiping down to the app drawer puts the cursor in its search box. A WebView
won't show the keyboard for a script focus(), so the shell does it through
new Android.showKeyboard/hideKeyboard bridge calls; closing the drawer hides
it again. Pick mode (adding apps) stays keyboard-free.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0169wSWnZqnXBsJKMPAiCCNG
2026-10-21 23:54:41 +00:00
Claude ce815d72c2 Remove the built-in clock and date from the home screen
Home is now fully blank apart from the Windows panel; add a clock widget
for the time. Drops the clock_time/clock_date imports, the TICK message
and its 5s timer, the shell's tick() on resume and is24Hour().

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KxeCBaCjz7Sp1PhdznewhY
2026-10-21 23:54:01 +00:00
Claude d7bd24b817 Resize widgets by dragging handles on their edges
Holding a widget and letting go without moving now shows handles on its
right edge, bottom edge and corner (plus a Remove / Done bar). Dragging
them snaps the widget to whole grid columns and half rows, within the
provider's min/max resize size and resize mode, which the shell reports
through widgetLimits. Widgets keep their width in columns (0 = full row),
saved with the rest of the home screen.

The shell keeps the system's edge-swipe gestures off the handles and only
calls updateAppWidgetSize when a widget's size actually changes (with the
sizes list on Android 12+), not on every scroll.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PuFQh1zV94TcKboMuS7t35
2026-10-21 23:46:31 +00:00
Claude a387ff9708 Press and hold a home app or widget to drag it to a new spot
A long press now lifts the slot instead of opening its menu. Moving the
finger slides it live to the slot under the finger and letting go drops
it there; letting go without moving opens the menu as before. index.html
does the dragging (and stops the page scrolling or swiping the drawer
under a lifted slot). Native widget views take their own touches, so
WidgetView forwards the moves after its long press as widgetDrag(x, y)
and the release as widgetDrop(moved).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JfvcrzLMTeE68CpNffNDvE
2026-10-21 22:30:58 +00:00
Claude 8196e06391 Retry icons the shell couldn't draw; draw from the listed activities
On a phone the first dozen apps in the drawer kept coming back without an
icon. Icons are now drawn from the LauncherActivityInfo objects apps.json
was built from (falling back to resolveActivity), failures are logged
under "ultra" with the reason, and the page asks again for any icon that
came back empty, up to three times with backoff.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019EEjkJVV72Lu8ndDVWg5BT
2026-10-21 21:45:59 +00:00
Claude ab03efd389 Launcher: home panel with a Windows button that opens Recents
The panel under the clock holds a Windows button. Android lets only
accessibility services open Recents, so a minimal RecentsService does
just performGlobalAction(GLOBAL_ACTION_RECENTS); until the user turns
it on, the button opens Accessibility settings instead.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M9yVmqTBBDyq8bEYt2rVq6
2026-10-21 19:03:52 +00:00
Claude a52108e95f Launcher: deliver icons through the bridge instead of intercepted image requests
Icons loaded as <img src="icon?c=..."> through shouldInterceptRequest
kept failing on a real phone for the first screenful of apps and for
every widget, even with retries. The page now asks the shell for icons
by key (Android.loadIcons); the shell draws them on one background
thread and returns them in batches of data: URIs via ultraIcons(). An
icon that can't be drawn shows as a blank disc.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019EEjkJVV72Lu8ndDVWg5BT
2026-10-21 19:01:50 +00:00
Claude 70fc005e90 Launcher: fix broken app and widget icons
The WebView requests a screenful of icons at once on several threads,
and loading and drawing icon drawables concurrently failed for that first
batch (and for every widget icon). Icons are now drawn one at a time
under a lock from a mutated drawable, widget icons fall back to the app
icon, and failures are logged under the "ultra" tag. The page retries a
failed icon twice and then shows a blank disc instead of a broken image.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019EEjkJVV72Lu8ndDVWg5BT
2026-10-21 18:43:08 +00:00
Claude 3ed5afbafc Launcher: blank home with added apps and widgets, swipe-down drawer
The home screen now starts empty under the clock. Long-press it to add
apps (the drawer opens in a pick mode) or widgets, and long-press a slot
to move or remove it. Swiping down opens the drawer with every app and a
search; long-press there adds an app to home, swipe up closes it.

Widgets are real AppWidgetHostViews layered over the WebView at the
slots the page reports after each render, with Android's bind and
configure screens on add and native long-press for their menu.

ultra gains on_longpress(msg, arg) for this.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019EEjkJVV72Lu8ndDVWg5BT
2026-10-21 18:01:25 +00:00
Claude 9443761b4a Add an Android home-screen launcher built with ultra
examples/launcher is the home screen as an ultra app: clock, app search
(Enter opens the first match), icon grid and a pinned dock kept in
localStorage. android/ is a dependency-free Java shell that serves it to
a transparent WebView over the wallpaper, answers apps.json and icon
PNGs from LauncherApps, and bridges launch/app info/settings/wallpaper.
CI builds the APK and publishes it as the launcher-latest release.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019EEjkJVV72Lu8ndDVWg5BT
2026-10-21 15:36:59 +00:00