mParticle / mparticle-android-sdk

mParticle SDK for Android apps
http://www.mparticle.com
Other
58 stars 62 forks source link

fix: Use DisplayMetrics instead of WindowManager for StrictMode Error #483

Closed Mansi-mParticle closed 5 months ago

Mansi-mParticle commented 5 months ago

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)

mparticle-automation commented 5 months ago

:tada: This PR is included in version 5.55.8 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: