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).

Change-Id: I67bc59456eb2e57e13b1b99509d3313ff0243b88
This commit is contained in:
Tommy Webb
2023-01-16 18:53:37 -05:00
committed by MrSluffy
parent 05832f1323
commit ecbad471be

View File

@@ -128,7 +128,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. */