Skip to content

Commit 1ca6105

Browse files
Tommy WebbMocaRafee
authored andcommitted
Launcher3: 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
1 parent a973218 commit 1ca6105

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
103103
public static final float PULL_MULTIPLIER = .02f;
104104
public static final float FLING_VELOCITY_MULTIPLIER = 1200f;
105105
protected static final String BUNDLE_KEY_CURRENT_PAGE = "launcher.allapps.current_page";
106-
private static final long DEFAULT_SEARCH_TRANSITION_DURATION_MS = 300;
106+
// As of this writing, search transition does not seem to work properly, so set duration to 0.
107+
private static final long DEFAULT_SEARCH_TRANSITION_DURATION_MS = 0;
107108
// Render the header protection at all times to debug clipping issues.
108109
private static final boolean DEBUG_HEADER_PROTECTION = false;
109110
/** Context of an activity or window that is inflating this container. */

0 commit comments

Comments
 (0)