diff --git a/src/com/android/launcher3/FastScrollRecyclerView.java b/src/com/android/launcher3/FastScrollRecyclerView.java index eff748a2b0..960d77a7d9 100644 --- a/src/com/android/launcher3/FastScrollRecyclerView.java +++ b/src/com/android/launcher3/FastScrollRecyclerView.java @@ -20,6 +20,7 @@ import static com.android.launcher3.testing.shared.TestProtocol.SCROLL_FINISHED_ import android.content.Context; import android.util.AttributeSet; +import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.accessibility.AccessibilityNodeInfo; @@ -27,8 +28,8 @@ 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.testing.shared.TestProtocol; import com.android.launcher3.views.RecyclerViewFastScroller; @@ -188,6 +189,10 @@ public abstract class FastScrollRecyclerView extends RecyclerView { * Scrolls this recycler view to the top. */ public void scrollToTop() { + if (TestProtocol.sDebugTracing) { + Log.d(TestProtocol.PRIVATE_SPACE_SCROLL_FAILURE, "FastScrollRecyclerView#scrollToTop", + new Exception()); + } if (mScrollbar != null) { mScrollbar.reattachThumbToScroll(); } diff --git a/tests/multivalentTests/shared/com/android/launcher3/testing/shared/TestProtocol.java b/tests/multivalentTests/shared/com/android/launcher3/testing/shared/TestProtocol.java index 59d0de69ee..fab30158b8 100644 --- a/tests/multivalentTests/shared/com/android/launcher3/testing/shared/TestProtocol.java +++ b/tests/multivalentTests/shared/com/android/launcher3/testing/shared/TestProtocol.java @@ -174,6 +174,7 @@ public final class TestProtocol { public static final String TEST_DRAG_APP_ICON_TO_MULTIPLE_WORKSPACES_FAILURE = "b/326908466"; public static final String WIDGET_CONFIG_NULL_EXTRA_INTENT = "b/324419890"; public static final String OVERVIEW_SELECT_TOOLTIP_MISALIGNED = "b/332485341"; + public static final String PRIVATE_SPACE_SCROLL_FAILURE = "b/339737008"; public static final String REQUEST_FLAG_ENABLE_GRID_ONLY_OVERVIEW = "enable-grid-only-overview"; public static final String REQUEST_FLAG_ENABLE_APP_PAIRS = "enable-app-pairs";