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

Commit 528356e7 authored by Tracy Zhou's avatar Tracy Zhou Committed by Android (Google) Code Review
Browse files

Merge "Fix task bar crash in gesture nav mode with task bar / nav bar unification on" into main

parents 9acb884c 27d77690
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ abstract class AbstractNavButtonLayoutter(
        protected val startContextualContainer: ViewGroup,
        protected val imeSwitcher: ImageView?,
        protected val rotationButton: RotationButton?,
        protected val a11yButton: ImageView
        protected val a11yButton: ImageView?
) : NavButtonLayoutter {
    protected val homeButton: ImageView? = navButtonContainer.findViewById(R.id.home)
    protected val recentsButton: ImageView? = navButtonContainer.findViewById(R.id.recent_apps)
+4 −2
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ class KidsNavLayoutter(
        startContextualContainer: ViewGroup,
        imeSwitcher: ImageView?,
        rotationButton: RotationButton?,
        a11yButton: ImageView
        a11yButton: ImageView?
) :
    AbstractNavButtonLayoutter(
            resources,
@@ -114,7 +114,9 @@ class KidsNavLayoutter(
            startContextualContainer.addView(imeSwitcher)
            imeSwitcher.layoutParams = getParamsToCenterView()
        }
        if (a11yButton != null) {
            endContextualContainer.addView(a11yButton)
        }
        if (rotationButton != null) {
            endContextualContainer.addView(rotationButton.currentView)
            rotationButton.currentView.layoutParams = getParamsToCenterView()
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ class NavButtonLayoutFactory {
                navButtonsView: FrameLayout,
                imeSwitcher: ImageView?,
                rotationButton: RotationButton?,
                a11yButton: ImageView,
                a11yButton: ImageView?,
                resources: Resources,
                isKidsMode: Boolean,
                isInSetup: Boolean,
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ class PhoneGestureLayoutter(
        startContextualContainer: ViewGroup,
        imeSwitcher: ImageView?,
        rotationButton: RotationButton?,
        a11yButton: ImageView
        a11yButton: ImageView?
) :
        AbstractNavButtonLayoutter(
                resources,
+4 −2
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ open class PhoneLandscapeNavLayoutter(
        startContextualContainer: ViewGroup,
        imeSwitcher: ImageView?,
        rotationButton: RotationButton?,
        a11yButton: ImageView,
        a11yButton: ImageView?,
) :
    AbstractNavButtonLayoutter(
            resources,
@@ -113,7 +113,9 @@ open class PhoneLandscapeNavLayoutter(
            startContextualContainer.addView(imeSwitcher)
            imeSwitcher.layoutParams = getParamsToCenterView()
        }
        if (a11yButton != null) {
            startContextualContainer.addView(a11yButton)
        }
        if (rotationButton != null) {
            startContextualContainer.addView(rotationButton.currentView)
            rotationButton.currentView.layoutParams = getParamsToCenterView()
Loading