mparticle-android-sdk icon indicating copy to clipboard operation
mparticle-android-sdk copied to clipboard

fix: Use DisplayMetrics instead of WindowManager for StrictMode Error

Open Mansi-mParticle opened this issue 1 year ago • 0 comments

Instructions

  1. PR target branch should be against development
  2. PR title name should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-title-check.yml
  3. 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

Mansi-mParticle avatar Apr 30 '24 21:04 Mansi-mParticle