Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0306b54c authored by Milton Wu's avatar Milton Wu
Browse files

Privacy dot doesn't been reset after rtl changed

After RTL changed, privacy dot shall be reset just like orientation
changed.

Bug 207612200
Test: atest NotificationPanelViewControllerTest ScreenDecorationsTest
Test: Start voice recording, and change RTL to check statusbar behavior.

Change-Id: I6225278cb39dd7524965ef40c6b244a2cee98163
parent 78e4849f
Loading
Loading
Loading
Loading
+11 −6
Original line number Diff line number Diff line
@@ -102,6 +102,10 @@ class PrivacyDotViewController @Inject constructor(

        configurationController.addCallback(object : ConfigurationController.ConfigurationListener {
            override fun onLayoutDirectionChanged(isRtl: Boolean) {
                uiExecutor?.execute {
                    // If rtl changed, hide all dotes until the next state resolves
                    setCornerVisibilities(View.INVISIBLE)

                    synchronized(this) {
                        val corner = selectDesignatedCorner(nextViewState.rotation, isRtl)
                        nextViewState = nextViewState.copy(
@@ -110,6 +114,7 @@ class PrivacyDotViewController @Inject constructor(
                        )
                    }
                }
            }
        })

        stateController.addCallback(object : StatusBarStateController.StateListener {