mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Change expand animation for private space container.
Only scroll to bottom. Don't use the animation. bug: 299294792 test: manual: video: https://drive.google.com/file/d/134Mq0MX0xauRfkNv8LGXOZgweRjqrmTa/view?usp=sharing Flag: ACONFIG com.android.launcher3.Flags.private_space_animation TEAMFOOD Change-Id: Ie6666638a53e334bddb1700674c2c49eb5788a06
This commit is contained in:
@@ -126,6 +126,7 @@ 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 int SCROLL_TO_BOTTOM_DURATION = 500;
|
||||
private static final long DEFAULT_SEARCH_TRANSITION_DURATION_MS = 300;
|
||||
// Render the header protection at all times to debug clipping issues.
|
||||
private static final boolean DEBUG_HEADER_PROTECTION = false;
|
||||
@@ -515,7 +516,7 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
|
||||
// Switch to the main tab
|
||||
switchToTab(ActivityAllAppsContainerView.AdapterHolder.MAIN);
|
||||
// Scroll to bottom
|
||||
getActiveRecyclerView().scrollToBottomWithMotion();
|
||||
getActiveRecyclerView().scrollToBottomWithMotion(SCROLL_TO_BOTTOM_DURATION);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user