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

Commit b13c14a2 authored by Tony Wickham's avatar Tony Wickham
Browse files

Have LauncherActivityInterface#getCreatedActivity return BaseQuickstepLauncher

This gives access to quickstep-specific functionality such as ShelfPeekAnim.

Change-Id: I514baa45fe9404157de51f06e891eaea3fc86971
parent d0764c04
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -213,7 +213,7 @@ public final class LauncherActivityInterface implements BaseActivityInterface<La
    @Override
    public AnimationFactory prepareRecentsUI(boolean activityVisible,
            boolean animateActivity, Consumer<AnimatorPlaybackController> callback) {
        Launcher launcher = getCreatedActivity();
        BaseQuickstepLauncher launcher = getCreatedActivity();
        final LauncherState startState = launcher.getStateManager().getState();

        LauncherState resetState = startState;
@@ -229,8 +229,7 @@ public final class LauncherActivityInterface implements BaseActivityInterface<La
        launcher.getAppsView().reset(false /* animate */);

        return new AnimationFactory() {
            private final ShelfPeekAnim mShelfAnim =
                    ((BaseQuickstepLauncher) launcher).getShelfPeekAnim();
            private final ShelfPeekAnim mShelfAnim = launcher.getShelfPeekAnim();
            private boolean mIsAttachedToWindow;

            @Override
@@ -400,8 +399,8 @@ public final class LauncherActivityInterface implements BaseActivityInterface<La

    @Nullable
    @Override
    public Launcher getCreatedActivity() {
        return Launcher.ACTIVITY_TRACKER.getCreatedActivity();
    public BaseQuickstepLauncher getCreatedActivity() {
        return BaseQuickstepLauncher.ACTIVITY_TRACKER.getCreatedActivity();
    }

    @Nullable