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

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

Merge "Fix nav accessibility order" into oc-dr1-dev

parents 25c84b33 c7ba5431
Loading
Loading
Loading
Loading
+7 −3
Original line number Original line Diff line number Diff line
@@ -269,13 +269,17 @@ public class NavigationBarInflaterView extends FrameLayout
        parent.addView(v);
        parent.addView(v);
        addToDispatchers(v);
        addToDispatchers(v);
        View lastView = landscape ? mLastLandscape : mLastPortrait;
        View lastView = landscape ? mLastLandscape : mLastPortrait;
        View accessibilityView = v;
        if (v instanceof ReverseFrameLayout) {
            accessibilityView = ((ReverseFrameLayout) v).getChildAt(0);
        }
        if (lastView != null) {
        if (lastView != null) {
            v.setAccessibilityTraversalAfter(lastView.getId());
            accessibilityView.setAccessibilityTraversalAfter(lastView.getId());
        }
        }
        if (landscape) {
        if (landscape) {
            mLastLandscape = v;
            mLastLandscape = accessibilityView;
        } else {
        } else {
            mLastPortrait = v;
            mLastPortrait = accessibilityView;
        }
        }
        return v;
        return v;
    }
    }