release-request-8aff77ce-b1d4-44c8-abb8-c39db5d1e998-for-git_oc-dr1-release-4029936 snap-temp-L09300000066301094

Change-Id: Ifeb8e531ae6f7d3bd4793b32f8ccef9e6f7fa7dd
diff --git a/car-stream-ui-lib/src/com/android/car/app/CarDrawerActivity.java b/car-stream-ui-lib/src/com/android/car/app/CarDrawerActivity.java
index ce6f04a..c8bf22a 100644
--- a/car-stream-ui-lib/src/com/android/car/app/CarDrawerActivity.java
+++ b/car-stream-ui-lib/src/com/android/car/app/CarDrawerActivity.java
@@ -219,7 +219,7 @@
             public void onDrawerClosed(View drawerView) {
                 // If drawer is closed for any reason, revert stack/drawer to initial root state.
                 cleanupStackAndShowRoot();
-                mDrawerList.getRecyclerView().scrollToPosition(0);
+                scrollToPosition(0);
             }
             @Override
             public void onDrawerStateChanged(int newState) {}
@@ -277,7 +277,11 @@
         // NOTE: We don't use swapAdapter() since different levels in the Drawer may switch between
         // car_menu_list_item_normal, car_menu_list_item_small and car_list_empty layouts.
         mDrawerList.getRecyclerView().setAdapter(adapter);
-        mDrawerList.getRecyclerView().scrollToPosition(0);
+        scrollToPosition(0);
+    }
+
+    public void scrollToPosition(int position) {
+        mDrawerList.getRecyclerView().smoothScrollToPosition(position);
     }
 
     private boolean maybeHandleUpClick() {