Taskbar layout update

> Calculating the hotseat padding statically
> Animating taskbar views individually when animating to home
  instead of a layout animation
> Moving all navbar buttons to a separate layout/controller and independent
  of Launcher
> Fixing RTL layout for taskbar and nav bar

Bug: 187353581
Test: Manual
Change-Id: If21696f38beee328f553e467394776a8e8ed4c3e
This commit is contained in:
Sunny Goyal
2021-05-25 14:35:01 -07:00
parent 759490be1d
commit 57b2279dcb
29 changed files with 680 additions and 1098 deletions
@@ -104,7 +104,7 @@ public class RotationButtonController {
private final IRotationWatcher.Stub mRotationWatcher = new IRotationWatcher.Stub() {
@Override
public void onRotationChanged(final int rotation) throws RemoteException {
public void onRotationChanged(final int rotation) {
// We need this to be scheduled as early as possible to beat the redrawing of
// window in response to the orientation change.
mMainThreadHandler.postAtFrontOfQueue(() -> {
@@ -137,7 +137,7 @@ public class RotationButtonController {
mAccessibilityManager = AccessibilityManager.getInstance(context);
mTaskStackListener = new TaskStackListenerImpl();
mDisplayController = DisplayController.INSTANCE.getNoCreate();
mDisplayController = DisplayController.INSTANCE.get(context);
}
public void setRotationButton(RotationButton rotationButton) {
@@ -156,7 +156,7 @@ public class RotationButtonController {
}
}
public void cleanup() {
public void onDestroy() {
unregisterListeners();
}