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

Fix Resource Manager code to use native APIs before reflection #13176

Merged
merged 4 commits into from
Feb 5, 2021

Conversation

PureWeen
Copy link
Contributor

Description of Change

Fix Resource Manager to use native APIS to retrieve IDs before falling back to reflection. At some point the Resource.designer.cs class will most likely vanish so reflection will stop working (dotnet/android#5317). That's why this PR is targeting 4.8 so we can get this code in a little bit earlier than 5.0.

API Changes

Added:

  • int ResourceManager.GetDrawableId(this Context context, string title)
  • int ResourceManager.GetResource(this Context context, string title)

Platforms Affected

  • Android

Testing Procedure

  • UI Tests all pass
  • Whatever additional testing you feel is missing from the UI Tests

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

@jsuarezruiz
Copy link
Contributor

The failing tests seems to be unrelated (CarouselViewPositionFromVisibilityChangeTest_google_pixel_2_8_1_0).

@PureWeen PureWeen added the blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. label Dec 30, 2020
@PureWeen PureWeen added this to the 5.0.1 milestone Dec 30, 2020
@PureWeen PureWeen modified the milestones: 5.0.1, 5.0.0 Jan 14, 2021
@PureWeen
Copy link
Contributor Author

PureWeen commented Feb 5, 2021

Test failures are unrelated

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. ControlGallery p/Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants