Bug 1809592 - Update display orientation listener
commit9c55c5d5bd8f7e9c1fca55684b052ee5caa52cb7
authorMugurell <Mugurell@users.noreply.github.com>
Wed, 11 Jan 2023 07:28:21 +0000 (11 09:28 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 8 Feb 2023 15:09:56 +0000 (8 15:09 +0000)
treeb8be7d9dcc4c00cadd4ac596fe02a7a98c7b16b6
parent411fc55169a624bfbe8cd27fd5ade7aa470522ad
Bug 1809592 - Update display orientation listener

In testing it was seen that the display orientation change could get reported
even without a screen rotation and because of the previous UNSPECIFIED default
this would trigger the "onDisplayRotationChanged" callback.
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