diff options
author | Danny Epstein <depstein@google.com> | 2020-07-01 13:55:01 -0700 |
---|---|---|
committer | Danny Epstein <depstein@google.com> | 2020-07-06 11:42:17 -0700 |
commit | 3ea519db54ce870b9514355ac6f2d542e294b2f7 (patch) | |
tree | 8b2d5a50f34136dc024c1818db1322d710615714 /packages/CarSystemUI/src | |
parent | 81d4133de97fc5d0ff261ea142130517b01f332e (diff) |
Clean up FocusParkingViews
Put FocusParkingView first rather than last and update comment to
indicate that the FocusParkingView must be first. Use start rather
than left to position FocusParkingView first.
Bug: 131421840
Bug: 154540419
Test: manual
Change-Id: I89b9977e1be4722c1e922e360332aa9d631b9540
Diffstat (limited to 'packages/CarSystemUI/src')
-rw-r--r-- | packages/CarSystemUI/src/com/android/systemui/car/navigationbar/NavigationBarViewFactory.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/CarSystemUI/src/com/android/systemui/car/navigationbar/NavigationBarViewFactory.java b/packages/CarSystemUI/src/com/android/systemui/car/navigationbar/NavigationBarViewFactory.java index d60bc418ece2..adf8d4d5acf8 100644 --- a/packages/CarSystemUI/src/com/android/systemui/car/navigationbar/NavigationBarViewFactory.java +++ b/packages/CarSystemUI/src/com/android/systemui/car/navigationbar/NavigationBarViewFactory.java @@ -148,10 +148,9 @@ public class NavigationBarViewFactory { CarNavigationBarView view = (CarNavigationBarView) View.inflate(mContext, barLayout, /* root= */ null); - // Include a FocusParkingView at the end. The rotary controller "parks" the focus here when - // the user navigates to another window. This is also used to prevent wrap-around which is - // why it must be first or last in Tab order. - view.addView(new FocusParkingView(mContext)); + // Include a FocusParkingView at the beginning. The rotary controller "parks" the focus here + // when the user navigates to another window. This is also used to prevent wrap-around. + view.addView(new FocusParkingView(mContext), 0); mCachedViewMap.put(type, view); return mCachedViewMap.get(type); |