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

Commit e9f46354 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Show hotseat instead of stashed taskbar handle after entering stage split from...

Show hotseat instead of stashed taskbar handle after entering stage split from fullscreen app via keyboard shortcut

Besides finishing the recents animation from fullscreen app, we also need to update the taskbar state

Fixes: 323561157
Test: Go to a fullscreen app, trigger the split shortcut, make sure the hotseat icons are visible on the home screen
Change-Id: I36f47846ed0bc7f7036ae22452a28efc9cb09bc7
parent 6474a3b4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -253,6 +253,11 @@ public class LauncherTaskbarUIController extends TaskbarUIController {
        return mTaskbarLauncherStateController.createAnimToLauncher(toState, callbacks, duration);
    }

    public void updateTaskbarLauncherStateGoingHome() {
        mTaskbarLauncherStateController.updateStateForFlag(FLAG_VISIBLE, true);
        mTaskbarLauncherStateController.applyState();
    }

    public boolean isDraggingItem() {
        return mControllers.taskbarDragController.isDragging();
    }
+11 −1
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ import androidx.annotation.BinderThread;

import com.android.launcher3.R;
import com.android.launcher3.anim.PendingAnimation;
import com.android.launcher3.taskbar.LauncherTaskbarUIController;
import com.android.launcher3.uioverrides.QuickstepLauncher;
import com.android.quickstep.OverviewComponentObserver;
import com.android.quickstep.RecentsAnimationCallbacks;
@@ -150,7 +151,16 @@ public class SplitWithKeyboardShortcutController {
            anim.addListener(new AnimatorListenerAdapter() {
                @Override
                public void onAnimationStart(Animator animation) {
                    controller.finish(true /* toRecents */, null /* onFinishComplete */,
                    controller.finish(
                            true /* toRecents */,
                            () -> {
                                LauncherTaskbarUIController controller =
                                        mLauncher.getTaskbarUIController();
                                if (controller != null) {
                                    controller.updateTaskbarLauncherStateGoingHome();
                                }

                            },
                            false /* sendUserLeaveHint */);
                }