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

Commit c7ba5431 authored by Jason Monk's avatar Jason Monk
Browse files

Fix nav accessibility order

Test: manual
Change-Id: I0d3f65c84a4158024f90c47ce9da329d4bd210ac
Fixes: 63333329
parent 84e0f453
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -269,13 +269,17 @@ public class NavigationBarInflaterView extends FrameLayout
        parent.addView(v);
        addToDispatchers(v);
        View lastView = landscape ? mLastLandscape : mLastPortrait;
        View accessibilityView = v;
        if (v instanceof ReverseFrameLayout) {
            accessibilityView = ((ReverseFrameLayout) v).getChildAt(0);
        }
        if (lastView != null) {
            v.setAccessibilityTraversalAfter(lastView.getId());
            accessibilityView.setAccessibilityTraversalAfter(lastView.getId());
        }
        if (landscape) {
            mLastLandscape = v;
            mLastLandscape = accessibilityView;
        } else {
            mLastPortrait = v;
            mLastPortrait = accessibilityView;
        }
        return v;
    }