Skip to content

fix(player): keep landscape when minimizing from fullscreen - #2343

Merged
A-EDev merged 1 commit into
mainfrom
fix/minimize-keeps-orientation
Nov 24, 2026
Merged

A-EDev merged 1 commit into
mainfrom
fix/minimize-keeps-orientation

Conversation

@A-EDev

@A-EDev A-EDev commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Minimizing the player from fullscreen while the phone is sideways no longer turns the screen to portrait. The app and the mini player follow the sensor.
  • Leaving fullscreen with the fullscreen button or a swipe still holds portrait until the phone is turned upright, so the expanded player does not go straight back to fullscreen. Minimizing from that state releases the hold.
  • The rule is now a pure function, orientationAfterFullscreen, with FullscreenExitOrientationTest.

Related issue

Closes #2316

Change type

  • Bug fix
  • Feature
  • Refactor or maintenance
  • Build, packaging, or CI
  • Documentation

Validation

  • ./gradlew :app:assembleGithubDebug
  • ./gradlew :app:testGithubDebugUnitTest (7109 tests, 0 failures, with all five of this batch merged together)
  • I ran any additional flavor-specific build or test tasks affected by this change. (spotlessCheck, :app:compileFossDebugKotlin)
  • I manually tested the affected behavior on an Android device or emulator.

Test device and Android version: Android emulator, phone image, Android 17 (API 37)

  • Emulator with auto-rotate on, rotated sideways: main requests SCREEN_ORIENTATION_PORTRAIT after Minimize; with this PR it requests UNSPECIFIED and shows the landscape app with the mini player. The fullscreen button exit still pins portrait. Tapping the mini player while sideways goes back to fullscreen. Turning upright returns to portrait.

Screenshots or recordings

Risk and compatibility

Orientation requests only. Tablets, large windows and rotation lock are unchanged.

  • The change does not introduce secrets, private data, or unexpected telemetry.
  • New user-facing text uses Android string resources.
  • Dependency and lockfile changes are intentional and limited to this PR.
  • Room schema changes include the required version bump and migration, or this PR does not change the Room schema.
  • Breaking changes and upgrade steps are clearly documented.

@github-actions github-actions Bot added documentation Improvements or additions to documentation ui Compose UI, theming, or Material 3 surfaces labels Nov 23, 2026
@A-EDev
A-EDev merged commit 5588fe8 into main Nov 24, 2026
14 of 17 checks passed
@A-EDev
A-EDev deleted the fix/minimize-keeps-orientation branch November 24, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation ui Compose UI, theming, or Material 3 surfaces

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Keeping player orientation when going to mini player

1 participant