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 methods in ShadowDisplay #8840

Conversation

MGaetan89
Copy link
Contributor

As discussed in #8810, this PR removes all the deprecated methods in ShadowDisplay. The only deprecated method I kept is getRefreshRate(), otherwise the setRefreshRate() method has no effect anymore. Maybe we should deprecate it for removal in a future release?

This PR removes all the deprecated methods in `ShadowDisplay`.
The only deprecated method I kept is `getRefreshRate()`, otherwise the `setRefreshRate()` method has no effect anymore. Maybe we should deprecate it for removal in a future release?
Copy link
Member

@utzcoz utzcoz left a comment

Choose a reason for hiding this comment

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

LGTM.

@utzcoz utzcoz requested a review from hoisie February 16, 2024 02:29
@utzcoz utzcoz merged commit e317d8f into robolectric:master Feb 16, 2024
19 checks passed
@utzcoz
Copy link
Member

utzcoz commented Feb 16, 2024

@MGaetan89 Thanks for your contribution. You can rebase you previous PR, and we can continue the discuss in that PR page.

@utzcoz
Copy link
Member

utzcoz commented Feb 16, 2024

@hoisie @MGaetan89 Maybe we can create a new article on robolectric.org to recommend the best way to test Display's scale with fontScale? When we release a new version, we can refer it directly.

@MGaetan89 MGaetan89 deleted the feature/remove_shadowdisplay_deprecated_methods branch February 16, 2024 09:05
@MGaetan89
Copy link
Contributor Author

@hoisie @MGaetan89 Maybe we can create a new article on robolectric.org to recommend the best way to test Display's scale with fontScale? When we release a new version, we can refer it directly.

Good idea! Maybe we can update the Simulating Displays section on this page?
And when the next version is released, add a note here?

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

Successfully merging this pull request may close these issues.

None yet

3 participants