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

Unverified Commit 0d94fcd0 authored by Yash Garg's avatar Yash Garg 💬
Browse files

fix: check prev and current page number to prevent anim issue

parent 64790854
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1236,14 +1236,16 @@ public class LauncherActivity extends AppCompatActivity
                blurLayer.setAlpha((page == 0 || mFolderWindowContainer.getVisibility() == VISIBLE) ? 1f : 0f);

                if (currentPageNumber != page) {
                    int prevPage = currentPageNumber;
                    currentPageNumber = page;
                    navbarAnimator.cancel();
                    if (currentPageNumber == WIDGET_PAGE) {
                        navbarAnimator.start();
                        refreshSuggestedApps(widgetsPage, forceRefreshSuggestedApps);
                        mInsetsController.hide(WindowInsetsCompat.Type.statusBars());
                    } else {
                    } else if (prevPage == WIDGET_PAGE && currentPageNumber == 1) {
                        navbarAnimator.reverse();
                    } else {
                        mInsetsController.show(WindowInsetsCompat.Type.statusBars());
                    }