Skip to content

Commit

Permalink
Launcher3: Skip glitchy search animation
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
t-m-w authored and MocaRafee committed Oct 25, 2023
1 parent a973218 commit 1ca6105
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,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. */
Expand Down

0 comments on commit 1ca6105

Please sign in to comment.