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

Verified Commit 4fb63840 authored by Saalim Quadri's avatar Saalim Quadri
Browse files

(fix) Hide/show current page and hotseat on swipeSearchContainer

parent 9082cb62
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3334,6 +3334,8 @@ public class Launcher extends StatefulActivity<LauncherState>
        set.play(ObjectAnimator.ofFloat(swipeSearchContainer, View.TRANSLATION_Y, 0))
                .with(ObjectAnimator.ofFloat(mBlurLayer, View.ALPHA, 1f))
                .with(ObjectAnimator.ofFloat(mWorkspace, View.ALPHA, 0f))
                .with(ObjectAnimator.ofFloat(mWorkspace.getHotseat(), View.ALPHA, 1f))
                .with(ObjectAnimator.ofFloat(mWorkspace.getPageAt(mWorkspace.getCurrentPage()), View.ALPHA, 0f))
                .with(ObjectAnimator.ofFloat(mWorkspace.mPageIndicator, View.ALPHA, 0f))
                .with(ObjectAnimator.ofFloat(mHotseat, View.ALPHA, 0f));
        set.setDuration(300);
@@ -3376,7 +3378,9 @@ public class Launcher extends StatefulActivity<LauncherState>
        AnimatorSet set = new AnimatorSet();
        set.play(ObjectAnimator.ofFloat(swipeSearchContainer, View.TRANSLATION_Y, -swipeSearchContainer.getHeight()))
                .with(ObjectAnimator.ofFloat(mWorkspace, View.ALPHA, 1f))
                .with(ObjectAnimator.ofFloat(mWorkspace.getHotseat(), View.ALPHA, 0f))
                .with(ObjectAnimator.ofFloat(mWorkspace.mPageIndicator, View.ALPHA, 1f))
                .with(ObjectAnimator.ofFloat(mWorkspace.getPageAt(mWorkspace.getCurrentPage()), View.ALPHA, 1f))
                .with(ObjectAnimator.ofFloat(mHotseat, View.ALPHA, 1f))
                .with(ObjectAnimator.ofFloat(mBlurLayer, View.ALPHA, 0f));
        set.setDuration(300);