From f59e125fa9a7fd4e627192e6aa525b4d39634c4d Mon Sep 17 00:00:00 2001 From: Heemin Seog Date: Mon, 19 Aug 2019 15:13:07 -0700 Subject: [PATCH] Change the visibility of nav bar methods This will help OEMs to customize the exact behavior of showing/hiding the nav bar if they choose to extend the CarSysUI for their own purposes. Bug: 138242566 Test: build, manual Change-Id: I91c76bd5d646cd356e67fe4f6900d081c6929614 --- .../android/systemui/statusbar/car/CarStatusBar.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/CarSystemUI/src/com/android/systemui/statusbar/car/CarStatusBar.java b/packages/CarSystemUI/src/com/android/systemui/statusbar/car/CarStatusBar.java index 37b5e8860fccb..064b9974e7b45 100644 --- a/packages/CarSystemUI/src/com/android/systemui/statusbar/car/CarStatusBar.java +++ b/packages/CarSystemUI/src/com/android/systemui/statusbar/car/CarStatusBar.java @@ -838,7 +838,11 @@ public class CarStatusBar extends StatusBar implements CarBatteryController.Batt } } - private void attachBottomNavBarWindow() { + /** + * Attaches the bottom nav bar window. Can be extended to modify the specific behavior of + * attaching the bottom nav bar. + */ + protected void attachBottomNavBarWindow() { if (!mShowBottom) { return; } @@ -861,7 +865,11 @@ public class CarStatusBar extends StatusBar implements CarBatteryController.Batt mWindowManager.addView(mNavigationBarWindow, lp); } - private void detachBottomNavBarWindow() { + /** + * Detaches the bottom nav bar window. Can be extended to modify the specific behavior of + * detaching the bottom nav bar. + */ + protected void detachBottomNavBarWindow() { if (!mShowBottom) { return; }