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

Commit 67487b46 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Privacy dot doesn't been reset after rtl changed"

parents 9901cbbb 0306b54c
Loading
Loading
Loading
Loading
+11 −6
Original line number Original line Diff line number Diff line
@@ -102,6 +102,10 @@ class PrivacyDotViewController @Inject constructor(


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

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


        stateController.addCallback(object : StatusBarStateController.StateListener {
        stateController.addCallback(object : StatusBarStateController.StateListener {