diff --git a/app/src/main/java/org/jellyfin/androidtv/ui/playback/CustomPlaybackOverlayFragment.java b/app/src/main/java/org/jellyfin/androidtv/ui/playback/CustomPlaybackOverlayFragment.java index 4a9ba43122..59c1c351e8 100644 --- a/app/src/main/java/org/jellyfin/androidtv/ui/playback/CustomPlaybackOverlayFragment.java +++ b/app/src/main/java/org/jellyfin/androidtv/ui/playback/CustomPlaybackOverlayFragment.java @@ -16,6 +16,7 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import android.view.WindowManager; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.widget.LinearLayout; @@ -70,6 +71,7 @@ import org.jellyfin.androidtv.ui.presentation.PositionableListRowPresenter; import org.jellyfin.androidtv.ui.shared.PaddedLineBackgroundSpan; import org.jellyfin.androidtv.util.CoroutineUtils; +import org.jellyfin.androidtv.util.DeviceUtils; import org.jellyfin.androidtv.util.ImageUtils; import org.jellyfin.androidtv.util.InfoLayoutHelper; import org.jellyfin.androidtv.util.TextUtilsKt; @@ -765,6 +767,13 @@ public void onStop() { Timber.d("this fragment belongs to the current session, ending it"); mPlaybackController.endPlayback(); } + + // Reset display mode back to "no preference" + if (DeviceUtils.is60()) { + WindowManager.LayoutParams params = requireActivity().getWindow().getAttributes(); + params.preferredDisplayModeId = 0; + requireActivity().getWindow().setAttributes(params); + } } public void show() {