Loading src/com/android/launcher3/FastScrollRecyclerView.java +5 −3 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ import android.view.accessibility.AccessibilityNodeInfo; import androidx.annotation.Nullable; import androidx.recyclerview.widget.RecyclerView; import com.android.app.animation.Interpolators; import com.android.launcher3.compat.AccessibilityManagerCompat; import com.android.launcher3.views.RecyclerViewFastScroller; Loading Loading @@ -194,12 +195,13 @@ public abstract class FastScrollRecyclerView extends RecyclerView { } /** * Scrolls this recycler view to the bottom. * Scrolls this recycler view to the bottom with easing and duration. */ public void scrollToBottom() { public void scrollToBottomWithMotion() { if (mScrollbar != null) { mScrollbar.reattachThumbToScroll(); } smoothScrollToPosition(getAdapter().getItemCount() - 1); // Emphasized interpolators with 500ms duration smoothScrollBy(0, getAvailableScrollHeight(), Interpolators.EMPHASIZED, 500); } } src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java +1 −1 Original line number Diff line number Diff line Loading @@ -515,7 +515,7 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext> // Switch to the main tab switchToTab(ActivityAllAppsContainerView.AdapterHolder.MAIN); // Scroll to bottom getActiveRecyclerView().scrollToBottom(); getActiveRecyclerView().scrollToBottomWithMotion(); }); } Loading Loading
src/com/android/launcher3/FastScrollRecyclerView.java +5 −3 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ import android.view.accessibility.AccessibilityNodeInfo; import androidx.annotation.Nullable; import androidx.recyclerview.widget.RecyclerView; import com.android.app.animation.Interpolators; import com.android.launcher3.compat.AccessibilityManagerCompat; import com.android.launcher3.views.RecyclerViewFastScroller; Loading Loading @@ -194,12 +195,13 @@ public abstract class FastScrollRecyclerView extends RecyclerView { } /** * Scrolls this recycler view to the bottom. * Scrolls this recycler view to the bottom with easing and duration. */ public void scrollToBottom() { public void scrollToBottomWithMotion() { if (mScrollbar != null) { mScrollbar.reattachThumbToScroll(); } smoothScrollToPosition(getAdapter().getItemCount() - 1); // Emphasized interpolators with 500ms duration smoothScrollBy(0, getAvailableScrollHeight(), Interpolators.EMPHASIZED, 500); } }
src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java +1 −1 Original line number Diff line number Diff line Loading @@ -515,7 +515,7 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext> // Switch to the main tab switchToTab(ActivityAllAppsContainerView.AdapterHolder.MAIN); // Scroll to bottom getActiveRecyclerView().scrollToBottom(); getActiveRecyclerView().scrollToBottomWithMotion(); }); } Loading