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 deprecated method calls in FocusAwareCoordinator. #8670

Merged

Conversation

Isira-Seneviratne
Copy link
Member

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

  • Remove calls/overrides to deprecated methods in FocusAwareCoordinator.

Fixes the following issue(s)

  • Fixes #

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

@Isira-Seneviratne Isira-Seneviratne force-pushed the Update_FocusAwareCoordinator branch 2 times, most recently from d051316 to 73e96e5 Compare July 21, 2022 03:27
@triallax triallax added the codequality Improvements to the codebase to improve the code quality label Jul 21, 2022
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.

Seems to work. It was pretty difficult to verify, since the emulator's ui kept crashing after I added cutouts, but it works. Please provide links to documentation when you do deprecated methods refactoring, otherwise I have to look for them myself to verify the code is correct, but I am sure you checked them out, too. Thanks!

insets.consumeSystemWindowInsets();
}
return insets;
return consumed ? WindowInsetsCompat.CONSUMED.toWindowInsets() : insets;
Copy link
Member

Choose a reason for hiding this comment

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

* receivers adjust its bounds. So when two listeners are present (like in profile page)
* the player's controls will not receive insets. This method fixes it
*/
@Override
protected boolean fitSystemWindows(final Rect insets) {
public WindowInsets onApplyWindowInsets(final WindowInsets windowInsets) {
Copy link
Member

Choose a reason for hiding this comment

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

@Stypox Stypox merged commit 74df7fc into TeamNewPipe:dev Jul 23, 2022
@Isira-Seneviratne Isira-Seneviratne deleted the Update_FocusAwareCoordinator branch August 7, 2022 06:11
@e-zk e-zk mentioned this pull request Aug 13, 2022
5 tasks
@Stypox Stypox mentioned this pull request Aug 27, 2022
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codequality Improvements to the codebase to improve the code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants