Skip to content

Commit 34cdd86

Browse files
Merge pull request #82 from THEOplayer/release/1.13.2
Release 1.13.2
2 parents 7a085cc + ae66d8b commit 34cdd86

6 files changed

Lines changed: 11 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
> - 🏠 Internal
1010
> - 💅 Polish
1111
12+
## v1.13.2 (2026-03-03)
13+
14+
* 🐛 Fixed `PictureInPictureButton` to only be shown when the backing `THEOplayerView` has a valid `PiPConfiguration`. ([#81](https://github.com/THEOplayer/android-ui/pull/81))
15+
1216
## v1.13.1 (2026-01-05)
1317

1418
* 🐛 Changed THEOplayer to be an `api` dependency in Gradle. ([#76](https://github.com/THEOplayer/android-ui/pull/76))

app/src/main/java/com/theoplayer/android/ui/demo/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fun MainContent() {
7575
val context = LocalContext.current
7676
val theoplayerView = remember(context) {
7777
val config = THEOplayerConfig.Builder().apply {
78-
pipConfiguration(PipConfiguration.Builder().build())
78+
pip(PipConfiguration.Builder().build())
7979
}.build()
8080
THEOplayerView(context, config).apply {
8181
// Add ads integration through Google IMA

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ org.gradle.configuration-cache=true
2727
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
2828
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true
2929
# The version of the THEOplayer Open Video UI for Android.
30-
version=1.13.1
30+
version=1.13.2

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ androidx-junit = "1.3.0"
1616
androidx-espresso = "3.7.0"
1717
androidx-mediarouter = "1.8.1"
1818
dokka = "2.0.0"
19-
theoplayer = { prefer="10.0.0", strictly = "[5.0, 11.0)" }
19+
theoplayer = { prefer="10.11.0", strictly = "[5.0, 11.0)" }
2020

2121
[libraries]
2222
androidx-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "ktx" }

scripts/github_changelog.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ if (!version) {
1111
const changelogPath = path.resolve(__dirname, "../CHANGELOG.md");
1212
const changelog = fs.readFileSync(changelogPath, "utf-8");
1313
const headingStart = "## ";
14-
// Find block with current version
1514
const block = changelog
1615
.split(headingStart)
1716
.find((block) => block.startsWith(`v${version}`))
1817
.trim();
1918
let lines = block.split("\n");
20-
// Remove version
19+
// Remove version heading
2120
lines.splice(0, 1);
2221

2322
console.log(lines.join("\n").trim());

ui/src/main/java/com/theoplayer/android/ui/Player.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,9 @@ internal class PlayerImpl(override val theoplayerView: THEOplayerView?) : Player
511511
private set
512512

513513
override val pictureInPictureSupported: Boolean by lazy {
514-
(theoplayerView?.context as? Activity)?.supportsPictureInPictureMode() ?: false
514+
val theoplayerView = theoplayerView ?: return@lazy false
515+
val activity = theoplayerView.context as? Activity ?: return@lazy false
516+
theoplayerView.piPManager != null && activity.supportsPictureInPictureMode()
515517
}
516518

517519
override fun enterPictureInPicture(pipType: PiPType) {

0 commit comments

Comments
 (0)