From 0d94fcd0ac1e5b680ebe27d22893dcf511d38c98 Mon Sep 17 00:00:00 2001 From: Yash Garg Date: Thu, 5 Jan 2023 13:05:38 +0530 Subject: [PATCH] fix: check prev and current page number to prevent anim issue --- .../e/blisslauncher/features/launcher/LauncherActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java b/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java index 8e811cce0b..287bd709ea 100755 --- a/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java +++ b/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java @@ -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()); } -- GitLab