Skip to content

feat: add support for island attachements - #1935

Open
isaacsa51 wants to merge 1 commit into
sameerasw:developfrom
isaacsa51:feat/island/second_container_expanded_media
Open

isaacsa51 wants to merge 1 commit into
sameerasw:developfrom
isaacsa51:feat/island/second_container_expanded_media

Conversation

@isaacsa51

@isaacsa51 isaacsa51 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Linked issue

Closes #1917

Description

This branch adds a way to attach an extra shape below the island's expanded view. It sits under the island the way the queue pill does, with the same connected-blob look between the two. Third-party apps can fill it through the Island SDK.

  • SDK:
    • IslandPayload gains an attachments list of IslandAttachmentPayload. Each entry has a key, an anchor, a height, an optional title to match, and an optional beat period and offset.
    • IslandAnchor.MEDIA is the first and only anchor so far.
    • HostInfo.supportsAttachments lets apps check whether the host supports attachments.
    • IslandSurfaceKey can now name attachment surfaces (the attach. prefix).
  • Host model: IslandAttachments is a registry of attachments grouped by the app that sent them. It picks the attachment for an item by its anchor and, if one is given, a loose match on the track title.
  • Remote rendering:
    • PayloadValidator, ProviderConnection and RemoteExpanded now accept attachment payloads.
    • RemoteAttachments turns each one into a live remote surface. The surface uses the height the app reports, or the declared height if none is reported, and only takes taps once the attachment has settled.
  • UI:
    • IslandAttachmentSlot handles the attachment's position, its motion, and that connected-blob look.
    • IslandAttachmentSurface draws an animated glowing rim in the item's accent color. When a beat is given, it pulses in time with it.
    • IslandRoot places the attachment below the expanded island and the queue pill, and grows the window bounds so the attachment fits.
  • Media: the media plugin attaches to the MEDIA anchor and passes along the track title, whether it's playing, and the live playback position from the new MediaSessionSource.positionMs. A lyrics app, for example, can then show synced content under the media island.

Type of change

  • Bug fix
  • New feature
  • Translations
  • Documentation
  • Build / CI tooling

UI changes

image

Checklist

  • For new features: the linked issue is labeled approved and assigned to me.
  • This PR covers a single feature or fix and is under ~1,000 changed lines (or the size was agreed in the issue).
  • The base branch is develop.
  • ./gradlew assembleDebug and ./gradlew testDebugUnitTest pass.
  • I tested the changes on a device or emulator (including Shizuku or Root if applicable).
  • I understand every line of this change and can explain it in review, including any AI-assisted code.
  • The code follows the Development Guide.

@isaacsa51
isaacsa51 requested a review from sameerasw as a code owner November 27, 2026 15:51
@github-actions github-actions Bot added the needs-approved-issue Feature PR without an approved, assigned issue label Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Thanks! This PR was approved by a maintainer and is queued for review.

@isaacsa51
isaacsa51 force-pushed the feat/island/second_container_expanded_media branch from 91c19bb to b291917 Compare November 27, 2026 18:05
@sameerasw sameerasw linked an issue Nov 28, 2026 that may be closed by this pull request
1 task done
@sameerasw sameerasw added approved Approved for implementation and removed needs-approved-issue Feature PR without an approved, assigned issue labels Nov 28, 2026
@github-actions github-actions Bot added needs-approved-issue Feature PR without an approved, assigned issue too-large PR exceeds ~1,000 changed lines labels Nov 28, 2026
@sameerasw sameerasw removed the needs-approved-issue Feature PR without an approved, assigned issue label Nov 28, 2026
@github-actions github-actions Bot removed the too-large PR exceeds ~1,000 changed lines label Nov 28, 2026
@sameerasw sameerasw moved this from Backlog to In review in Essentials Progress Nov 28, 2026
@isaacsa51
isaacsa51 force-pushed the feat/island/second_container_expanded_media branch from b291917 to 3fd8bdc Compare November 28, 2026 07:38
@isaacsa51
isaacsa51 force-pushed the feat/island/second_container_expanded_media branch from 3fd8bdc to f2e6f75 Compare November 28, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Approved for implementation

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

[Feature]: Draw lyrics container on expanded media for Island

2 participants