Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not release video player on pause #14528

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ZetaTom
Copy link
Collaborator

@ZetaTom ZetaTom commented Feb 10, 2025

Previously the media player was be released when the associated PreviewMediaFragment was moved to the background. This resulted in an unresponsive media player when the fragment was brought back to the foreground.

Testing

  1. Open Nextcloud app
  2. Open Media tab from navigation drawer
  3. Open any image
  4. Swipe until video player is visible (requires a video file to be uploaded)
  5. Go back to the previous file
  6. Swipe back to the video

With this change in place the video player should still function as expected.


  • Tests written, or not not needed

- player would be released when swiping to next fragment
- player became unresponsive when going back to fragment

Signed-off-by: ZetaTom <[email protected]>
Copy link

Codacy

Lint

TypemasterPR
Warnings5555
Errors33

SpotBugs

CategoryBaseNew
Bad practice6565
Correctness5757
Dodgy code294294
Experimental11
Internationalization77
Malicious code vulnerability11
Multithreaded correctness77
Performance5151
Security1818
Total501501

Copy link

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/14528.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant