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

Commit f18a39b7 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊 Committed by Nishith Khanna
Browse files

feat: Fix hotseat visibility

parent 61a715d7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1343,6 +1343,10 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
        final int scrollDelta = getScrollX() - getScrollForPage(index) -
                getLayoutTransitionOffsetForPage(index);
        float scrollRange = getScrollForPage(index + 1) - getScrollForPage(index);

        if (scrollRange == 0)
            return;

        final float progress = (scrollRange - scrollDelta) / scrollRange;

        if (progress < 0)