Don't crash when scrollTo is called

RecyclerView does not support absolute position scrolling and it throws
UnsupportedUperationException if scrollTo is called.
This may create problems when user implicitly calls these methods (e.g.
via TransitionManager). Now instead, we just log an error and continue.

Bug: 24189541
Change-Id: I994fb03bc485bcf33d189a2b2b2ad15a7beccfa4
diff --git a/v7/recyclerview/src/android/support/v7/widget/ b/v7/recyclerview/src/android/support/v7/widget/
index f0b0afe..3e1cc75 100644
--- a/v7/recyclerview/src/android/support/v7/widget/
+++ b/v7/recyclerview/src/android/support/v7/widget/
@@ -1332,8 +1332,8 @@
     public void scrollTo(int x, int y) {
-        throw new UnsupportedOperationException(
-                "RecyclerView does not support scrolling to an absolute position.");
+        Log.w(TAG, "RecyclerView does not support scrolling to an absolute position. "
+                + "Use scrollToPosition instead");