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

Fix handling exception in playOnPopup and toggle description tab #7056

Merged
merged 4 commits into from
Sep 10, 2021

Conversation

TobiGr
Copy link
Member

@TobiGr TobiGr commented Sep 4, 2021

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

  • Fixed updating the wrong tabs when changing settings while running the minimized player in VideoDetailFragment. The comments tab was updated although the settings for the description tab were changed.
  • Fixed OnErrorNotImplementedException in InternalUrlsHandler.playOnPopup by implementing error handling. A popup is shown with a little info on the error:
  • Fixed OnErrorNotImplementedException in SearchFragment.initSuggestionObserver(). Errors are reported in the snackbar now. Not sure if I also managed to fix the cause of the original error. This needs to be investigated.
  • Fixed a few warnings by SonarLint

Fixes issues

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.

Due diligence

@TobiGr TobiGr added the bug Issue is related to a bug label Sep 4, 2021
Copy link
Member

@litetex litetex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me

How can I test these changes? E.g. the popup error?

I'm pretty sure this PR fixes also multiple issues.
Could please link them in the description of the PR?

@TobiGr
Copy link
Member Author

TobiGr commented Sep 4, 2021

You can follow the steps provided in our Matrix channel.

  1. Open https://www.youtube.com/watch?v=fSM_SO0GIBc&t=1
  2. Go to the description and click on the second link (http://youtu.be/rLje-qEraOE)

I'm pretty sure this PR fixes also multiple issues. Could please link them in the description of the PR?

Only found one, I guess the others were closed as duplicates. The other OnErrorNotImplementedException in #6976 is not related to this and should be investigated separately.

…minimized player in VideoDetailFragment

The comments tab was updated although the settings for the description tab were changed.
@TobiGr
Copy link
Member Author

TobiGr commented Sep 4, 2021

Fixed the OnErrorNotImplementedException from #6976

@litetex
Copy link
Member

litetex commented Sep 5, 2021

Test looks good, works like a charm :)

Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@TobiGr TobiGr merged commit 7eb5aa1 into release/0.21.10 Sep 10, 2021
@TobiGr TobiGr deleted the fix/playOnPopup branch September 10, 2021 16:21
@TobiGr TobiGr mentioned this pull request Sep 19, 2021
@efb4f5ff-1298-471a-8973-3d47447115dc

Why didn't it close the issues linked to it?

@opusforlife2
Copy link
Collaborator

No idea. Anyway, that issue is still not solved, apparently, so it needs to stay open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PrivateContentException not caught in description links Startup errors opening videos
5 participants