Skip to content

[pull] androidx-main from androidx:androidx-main - #1332

Merged
pull[bot] merged 2 commits into
MaxMood96:androidx-mainfrom
androidx:androidx-main
Aug 1, 2026
Merged

[pull] androidx-main from androidx:androidx-main#1332
pull[bot] merged 2 commits into
MaxMood96:androidx-mainfrom
androidx:androidx-main

Conversation

@pull

@pull pull Bot commented Aug 1, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Introduces the `androidx.core.pip.contentpip` package, providing a robust
fallback Picture-in-Picture (PiP) solution. This solution addresses
scenarios where native PiP is suppressed by the OS, notably when a user
employs the "quick switch" gesture to navigate between apps.

The fallback solution operates by hosting content in an internal
Activity within a dedicated task, key components:

- `ContentPip.enablePipOnAppSwitch`: Entry point for Activity to opt-in.
- `ContentPipCallback`: A simplified interface for managing content
  handoff (`onPrepareContentPip`, `onAttachContentPip`) and lifecycle recovery.
- Automated lifecycle and interaction monitoring to "pull back" content
  when the user returns to the main application.

Documentation is provided in the package-level README.md.

Bug: 540480397
Test: Manual verification via ./gradlew :core:core-pip:integration-tests:pip-on-app-switch:installDebug
RelNote: "Introduced a fallback `PiP` solution in `androidx.core.pip` to
         maintain Picture-in-Picture functionality during navigation gestures
         (like quick switch) where native `PiP` may be suppressed."
Change-Id: If289a70b583cc87b323cf95e5cbc005dc3fb784a
@pull pull Bot locked and limited conversation to collaborators Aug 1, 2026
@pull pull Bot added the ⤵️ pull label Aug 1, 2026
@pull
pull Bot merged commit 90b822f into MaxMood96:androidx-main Aug 1, 2026
1 of 3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant