Polish recorder and tile controls with smooth transitions
This commit is contained in:
25 files changed
+555
-75
No files matched your search
@@ -58,14 +58,15 @@ The UI uses native Android views and custom drawing, without Compose or a runtim
|
||||
- `MainActivity` owns one three-column icon menu; `BackupActivity.EXTRA_PAGE` opens backup sections directly. Preserve a floating, transparent, icon-only Menu shortcut (with its spoken label) over a full-screen scroll viewport. Keep the shortcut at the bottom center, hidden initially and after three idle seconds. Touch and rotary input reveal it without intercepting content gestures or opening the menu on the reveal tap. Keep it visible for touch exploration or keyboard focus, respect accessibility timeouts, and cancel idle callbacks when paused or rebuilt. Preserve consistent parent/back behavior, and the menu's scroll position. `WatchDesign.kt` supplies native controls, vector icons, cards, and static status dials without added UI dependencies. Menu entry labels include `Storage` and `Recording limit`. The storage chart fills most of the first viewport; readings and buttons can sit below it and remain reachable by scrolling. Keep the page visually readable at a glance.
|
||||
- Storage reads use Android's device capacity/available accounting and Remember's own app usage. `dataBytes` already includes cache: do not add `cacheBytes` again. Mark fallback app accounting as approximate. Show proportional chart slices; a small visibility marker must not inflate the app's actual share.
|
||||
- Preserve five-second storage refresh while that page is open, manual Refresh, and stale-result guards. Do not request usage access to other apps for this feature.
|
||||
- `RecorderControlsView.kt` keeps the app’s Record/Save button in place and shows smaller Pause/Resume and Mark icons below it (36 dp circles within 48 dp tap targets). Update recording state in place: preserve the numeral, scroll position, and floating menu rather than rebuilding the home screen. Keep finite label fades and icon entrances separate from numeral motion; settle transitions on pause/detach and omit them for reduced motion or battery saver. Keep the floating icon targets clear of the bottom-center menu.
|
||||
- Stop decorative motion when animations are disabled, battery saver is active, the activity is backgrounded, or capture is paused. Avoid extra background polling or animation work.
|
||||
|
||||
## Recording Tile
|
||||
|
||||
- `RecordingTileService.kt` provides the system Wear OS tile, `RecordingTileLayout.kt` builds its ProtoLayout UI, `RecordingTilePresentation.kt` assembles its minute timeline, `RecordingTileArtwork.kt` caches small image resources from the shared original numeral paths (bump its resource version when those images change), and `RecordingTileState.kt` defines snapshots and bounded one-shot action tokens. Keep the tile limited to the current recording; no library, storage, backup, or settings features.
|
||||
- Never start microphone capture from a background tile callback. The idle tile has a Record launch action to `TileRecordingActivity`: a transparent, tile-host-permission-protected activity requests microphone permission when needed, starts capture only while visible, and returns to the tile once recording begins. Never auto-start from an idle render or ordinary app launch. Active controls operate only on the existing service on the main thread, validate the current clip ID, and use explicit pause/resume commands. Consume tokens once; stale or replayed clicks must not affect a new part/session.
|
||||
- Request tile updates on recording state changes, not on recorder ticks. Mirror the recording page with the original minute numeral behind translucent Pause/Mark and Save controls, a seconds half-dial, capture-state and bookmark edge ticks, and no numeral caption. Use a host timeline for minute artwork, host-rendered dynamic seconds/spoken time, a live numeric fallback beyond the artwork timeline, and tap-to-refresh. Share one set of one-shot action tokens across future timeline entries so generating frames cannot evict current controls. Captured duration stays monotonic; wall-clock changes re-anchor the tile. Do not add background polling or wake locks for the tile.
|
||||
- Protect the exported tile provider with `com.google.android.wearable.permission.BIND_TILE_PROVIDER`. Keep 48 dp controls, round-screen bounds, and spoken descriptions. Use the native Tiles/ProtoLayout APIs without Compose. Tile screenshots and provider previews must use disposable recordings.
|
||||
- Never start microphone capture from a background tile callback. The idle tile has a Record launch action to `TileRecordingActivity`: a transparent, tile-host-permission-protected activity requests microphone permission when needed, starts capture only while visible, and returns to the tile once recording begins. Use the request’s ProtoLayout scope for an immutable direct activity PendingIntent on capable hosts, with an exported activity launch fallback on older hosts. Never auto-start from an idle render or ordinary app launch. Active controls operate only on the existing service on the main thread, validate the current clip ID, and use explicit pause/resume commands. Consume tokens once; stale or replayed clicks must not affect a new part/session.
|
||||
- Request tile updates on recording state changes, not on recorder ticks. Keep the original minute numeral behind one fixed Record/Save button and smaller floating Pause/Resume and Mark icons below it, a seconds half-dial, capture-state and bookmark edge ticks, and no numeral caption. Use a host timeline for minute artwork, host-rendered dynamic seconds/spoken time, a live numeric fallback beyond the artwork timeline, and tap-to-refresh. Share one set of one-shot action tokens across future timeline entries so generating frames cannot evict current controls. Captured duration stays monotonic; wall-clock changes re-anchor the tile. Do not add background polling or wake locks for the tile.
|
||||
- Protect the exported tile provider with `com.google.android.wearable.permission.BIND_TILE_PROVIDER`. Keep 48 dp tap targets around the smaller 36 dp icon circles, fixed Record/Save bounds, round-screen bounds, and spoken descriptions. Keep the layer and slot order stable across state and bookmark updates. `RecordingTileMotion.kt` owns short, finite host-rendered fades and the icon entrance; omit these when system animations are disabled or battery saver is active, and avoid whole-page transitions or looping motion. Use the native Tiles/ProtoLayout APIs without Compose. Tile screenshots and provider previews must use disposable recordings.
|
||||
- Test actual carousel controls and pause exclusion on a disposable Wear OS emulator when changing tile/service integration. Check idle behavior, replay/stale command rejection, split/stop updates, large minute values, and smaller round layouts. The tile minute-rollover test captures for a real minute and checks the actual carousel artwork transition.
|
||||
|
||||
## Backup Invariants
|
||||
|
||||
Reference in new issue
Block a user