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

Unverified Commit f442753e authored by Tommy Webb's avatar Tommy Webb Committed by Michael Bestas
Browse files

Skip glitchy search animation

* Entering and leaving search now takes effect right away.
* Should fix race in which tapping an app while search results are
  loading causes a tap on the previous app in the position, rather
  than on the search result.
* Helps prevent the scrollbar from appearing to be scrolled down
  somewhat when leaving search with floating header rows present;
  still happens sometimes, though (on stock OS launcher, too).

Issue: calyxos#1413
Change-Id: I67bc59456eb2e57e13b1b99509d3313ff0243b88
parent d2ed8c05
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -121,7 +121,8 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
    public static final float PULL_MULTIPLIER = .02f;
    public static final float FLING_VELOCITY_MULTIPLIER = 1200f;
    protected static final String BUNDLE_KEY_CURRENT_PAGE = "launcher.allapps.current_page";
    private static final long DEFAULT_SEARCH_TRANSITION_DURATION_MS = 300;
    // As of this writing, search transition does not seem to work properly, so set duration to 0.
    private static final long DEFAULT_SEARCH_TRANSITION_DURATION_MS = 0;
    // Render the header protection at all times to debug clipping issues.
    private static final boolean DEBUG_HEADER_PROTECTION = false;
    /** Context of an activity or window that is inflating this container. */