Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Use XF Size instead of Android.Util.Size #7033

Merged
merged 1 commit into from
Aug 1, 2019
Merged

Use XF Size instead of Android.Util.Size #7033

merged 1 commit into from
Aug 1, 2019

Conversation

hartez
Copy link
Contributor

@hartez hartez commented Jul 31, 2019

Description of Change

Replaces use of Android.Util.Size (not available until API 21) with Xamarin.Forms.Size to avoid missing class definition crashes on API < 21.

Also fixes transposed parameters when using ItemSizingStrategy.MeasureFirstItem.

Issues Resolved

API Changes

None

Platforms Affected

  • Android

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

Testing Procedure

Launch Control Gallery on API 19, navigate to
CollectionView Gallery -> Item Sizing Gallery -> Item Sizing Strategies. Should no longer crash.

PR Checklist

  • Has automated tests
  • Rebased on top of the target branch at time of PR
  • Changes adhere to coding standard

@samhouts samhouts added i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often t/bug 🐛 labels Jul 31, 2019
@samhouts samhouts requested review from jfversluis and rmarinho July 31, 2019 23:25
@rmarinho rmarinho merged commit 1d362ad into 4.2.0 Aug 1, 2019
@jfversluis jfversluis deleted the fix-gh6815 branch August 1, 2019 11:15
@samhouts samhouts added this to the 4.2.0 milestone Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/collectionview i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often p/Android t/bug 🐛
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants