-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Remove deprecated method calls in FocusAwareCoordinator. #8670
Conversation
d051316
to
73e96e5
Compare
73e96e5
to
f1dab11
Compare
There was a problem hiding this 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; |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is it?
Description of the changes in your PR
FocusAwareCoordinator
.Fixes the following issue(s)
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