mparticle-android-sdk
mparticle-android-sdk copied to clipboard
fix: Use DisplayMetrics instead of WindowManager for StrictMode Error
Instructions
- PR target branch should be against
development - PR title name should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-title-check.yml
- PR branch prefix should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-branch-check-name.yml
Summary
-Resolved StrictMode error by replacing direct usage of application context's WindowManager with DisplayMetrics.
Testing Plan
- [x] Was this tested locally? If not, explain why.
- Tested locally
Reference Issue (For mParticle employees only. Ignore if you are an outside contributor)
- Closes https://go.mparticle.com/work/SQDSDKS-6262