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

Commit 9d35bf0c authored by Yash Garg's avatar Yash Garg 💬 Committed by Mohammed Althaf T
Browse files

feat(status bar): hide status bar on widgets page

parent 15706f85
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ import android.widget.Toast;

import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import androidx.core.view.WindowInsetsCompat;

import com.android.app.animation.Interpolators;
import com.android.launcher3.accessibility.AccessibleDragListenerAdapter;
@@ -1410,12 +1411,15 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>

            if (mCurrentPage != 0) {
                mLauncher.mBlurLayer.setAlpha(0f);
                getWindowInsetsController().show(WindowInsetsCompat.Type.statusBars());
            }

            if (mCurrentPage == 0 && prevPage == 1) {
                navbarAnimator.start();
                getWindowInsetsController().hide(WindowInsetsCompat.Type.statusBars());
            } else if (prevPage == 0 && mCurrentPage == 1) {
                navbarAnimator.reverse();
                getWindowInsetsController().show(WindowInsetsCompat.Type.statusBars());
            }
        }
    }