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

Commit 1a922575 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Center a11y button

Bug: 25768138
Test: a11y button is centered when visible
Change-Id: If9099575c12b51a90bc9e15e712cb629811d36e3
parent ea9522ee
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -114,6 +114,7 @@ class KidsNavLayoutter(
        }
        if (a11yButton != null) {
            endContextualContainer.addView(a11yButton)
            a11yButton.layoutParams = getParamsToCenterView()
        }
        if (rotationButton != null) {
            endContextualContainer.addView(rotationButton.currentView)
+1 −0
Original line number Diff line number Diff line
@@ -132,6 +132,7 @@ open class PhoneLandscapeNavLayoutter(
        }
        if (a11yButton != null) {
            startContextualContainer.addView(a11yButton)
            a11yButton.layoutParams = getParamsToCenterView()
        }
        if (rotationButton != null) {
            startContextualContainer.addView(rotationButton.currentView)
+1 −0
Original line number Diff line number Diff line
@@ -119,6 +119,7 @@ class PhonePortraitNavLayoutter(
        }
        if (a11yButton != null) {
            endContextualContainer.addView(a11yButton)
            a11yButton.layoutParams = getParamsToCenterView()
        }
        if (rotationButton != null) {
            endContextualContainer.addView(rotationButton.currentView)
+1 −0
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ class PhoneSeascapeNavLayoutter(
        }
        if (a11yButton != null) {
            endContextualContainer.addView(a11yButton)
            a11yButton.layoutParams = getParamsToCenterView()
        }
        if (rotationButton != null) {
            endContextualContainer.addView(rotationButton.currentView)
+1 −0
Original line number Diff line number Diff line
@@ -72,6 +72,7 @@ class SetupNavLayoutter(
        }
        if (a11yButton != null) {
            endContextualContainer.addView(a11yButton)
            a11yButton.layoutParams = getParamsToCenterView()
        }
        if (rotationButton != null) {
            endContextualContainer.addView(rotationButton.currentView)
Loading