Bug 1819950 - Ensure a change of orientation on new Androids will dismiss CFRs
commitde895726098edc5b22a5ba03e643ce2ef194b1ae
authorMugurell <Mugurell@users.noreply.github.com>
Thu, 16 Mar 2023 13:22:33 +0000 (16 15:22 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 16 Mar 2023 17:37:20 +0000 (16 17:37 +0000)
tree51a0357b741738d9162d8034aff224bded2898a3
parent09c3c0a1d348f0aa8e4d6a97bef919bf2069035c
Bug 1819950 - Ensure a change of orientation on new Androids will dismiss CFRs

Seems like on Android 33 the current orientation detection calls do not report
valid results.
As such on newer Android versions we'll use another way to infer the current
rotation based on the configuration read from Resources.
mobile/android/android-components/components/compose/cfr/src/main/java/mozilla/components/compose/cfr/helper/DisplayOrientationListener.kt
mobile/android/android-components/components/compose/cfr/src/test/java/mozilla/components/compose/cfr/helper/DisplayOrientationListenerTest.kt
mobile/android/docs/changelog.md