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

Remove use of setSystemUiVisibility in previews #3372 #3373

Merged
merged 3 commits into from
Oct 11, 2023

Conversation

parneet-guraya
Copy link
Contributor

@parneet-guraya parneet-guraya commented Oct 10, 2023

Resolves: #3372

What this PR includes?

  • Replace deprecated setSystemUiVisibility(int) with WindowInsetsController.
  • Rendering Images in Fullscreen (including the display notch area).
  • In Video view the status bar also hide/show on tapping along with other views (navigation bar, player control view) as opposed to earlier behaviour where status bar used to be hidden all the time.

🏚️ Before

Record_2023-10-10-14-54-55.mp4

🏡 After

Record_2023-10-10-14-53-21.mp4

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

@mahibi
Copy link
Collaborator

mahibi commented Oct 11, 2023

works fine for me 👍
there are 2 lint errors regarding windowLayoutInDisplayCutoutMode
Could you fix this, for example by overriding FullScreenImageTheme and FullScreenMediaTheme with windowLayoutInDisplayCutoutMode in v27/styles.xml ?

@parneet-guraya
Copy link
Contributor Author

Hi @mahibi, sure I can override the style. Actually I was aware of it just did not do it because I was not sure If I should create a separate file for just these two styles.

Signed-off-by: parneet-guraya <[email protected]>
@github-actions
Copy link
Contributor

Codacy

Lint

TypemasterPR
Warnings8989
Errors00

SpotBugs

CategoryBaseNew
Correctness99
Dodgy code123123
Internationalization55
Malicious code vulnerability33
Performance88
Security22
Total150150

@github-actions
Copy link
Contributor

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/3373-talk.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 Talk app.

@mahibi mahibi merged commit 3b4a945 into master Oct 11, 2023
15 checks passed
@mahibi
Copy link
Collaborator

mahibi commented Oct 11, 2023

thanks @parneet-guraya

@parneet-guraya parneet-guraya deleted the technicalDebt/#3372 branch October 11, 2023 12:58
@AndyScherzinger AndyScherzinger added this to the 17.2.0 milestone Oct 11, 2023
Copy link
Contributor

github-actions bot commented Apr 1, 2024

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

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.

Use of deprecated setSystemUiVisibility in previews
3 participants