Skip to content

Conversation

@copybara-service
Copy link

Return the correct value in ViewConfiguration.getScaledMinimumScalingSpan

Previously, Robolectric was returning an incorrect value ('0') when
ViewConfiguration.getScaledMinimumScalingSpan was called. This affects
calculations when triggering pinch-and-spread-to-zoom actions.

The real value is defined as '27mm' by default and '32mm' for large
screen devices.

Also add a transient, short-lived system property to allow tests to opt-in
to the incorrect behavior.

…Span

Previously, Robolectric was returning an incorrect value ('0') when
ViewConfiguration.getScaledMinimumScalingSpan was called. This affects
calculations when triggering pinch-and-spread-to-zoom actions.

The real value is defined as '27mm' by default and '32mm' for large
screen devices.

Also add a transient, short-lived system property to allow tests to opt-in
to the incorrect behavior.

PiperOrigin-RevId: 627074303
@copybara-service copybara-service bot merged commit cf26305 into google Apr 22, 2024
@copybara-service copybara-service bot deleted the piper_626281035 branch April 22, 2024 17:07
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.

2 participants