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

Use real Android framework code in the ViewConfiguration(Context) ctor #9022

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link

Use real Android framework code in the ViewConfiguration(Context) ctor

Previously, calling ViewConfiguration.get(Context) did not invoke the
underlying Android framework code. This caused a lot of important
initialization logic to be skipped, and most of the 'scaled' fields in
ViewConfiguration to be uninitialized.

Update ShadowViewConfiguration to shadow the ViewConfiguration(Context)
constructor. This shadow method will call the original real
ViewConfiguration(Context) constructor, and then apply the Robolectric
customizations.

Most of the Robolectric customizations are also incorrect, but these can be
whittled down later.

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

0 participants