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

Added cache Context value #1351

Merged
merged 2 commits into from
Jun 2, 2021
Merged

Added cache Context value #1351

merged 2 commits into from
Jun 2, 2021

Conversation

pictos
Copy link
Contributor

@pictos pictos commented Jun 2, 2021

Description of Change

Cache the Android.Context for use when needed.

Bugs Fixed

API Changes

Added:

  • static Context? context;

Behavioral Changes

Now the app will not crash for missing the Android.Context. If that happens it's because something is really wrong!

PR Checklist

  • Has a linked Issue, and the Issue has been approved
  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Changes adhere to coding standard
  • Updated documentation

@pictos pictos added the bug Something isn't working. Breaky break. label Jun 2, 2021
@pictos pictos self-assigned this Jun 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working. Breaky break.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [Android] ToolkitPlatform.Context used by AvatarView is causing a NullReferenceException
3 participants