From b83ecf56d6e65e3664e7a5a6e9b2977cc8a94c7a Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Tue, 3 Sep 2024 13:05:52 +0200 Subject: [PATCH] fix: Restore video transitions on androidx.media3 1.4.0 and 1.4.1 (#922) androidx.media3 1.4.0-rc01 and above (at the time of writing) has a bug that breaks shared element transitions with a `PlayerView` (see https://github.com/androidx/media/issues/1594). This can be worked around by setting `app:surface_type="texture_view"`. This uses more power, but for the typical length of social media videos this shouldn't be a problem at the moment. Fixes #920. --- app/src/main/res/layout/fragment_view_video.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/res/layout/fragment_view_video.xml b/app/src/main/res/layout/fragment_view_video.xml index 4ac765f9a..1a058e00f 100644 --- a/app/src/main/res/layout/fragment_view_video.xml +++ b/app/src/main/res/layout/fragment_view_video.xml @@ -24,6 +24,11 @@ app:layout_constraintTop_toTopOf="parent" tools:text="Some media description" /> +