Test: manual
Change-Id: I0d3f65c84a4158024f90c47ce9da329d4bd210ac
Fixes:
63333329
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;
}