From 8f03b700dd5aa278222e33b41f4c3f3c66355152 Mon Sep 17 00:00:00 2001 From: Null Pointer Date: Fri, 15 Apr 2016 11:36:33 -0600 Subject: [PATCH] expose recyclerView.scrollToPosition() --- .../moonmonkeylabs/realmrecyclerview/RealmRecyclerView.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/src/main/java/co/moonmonkeylabs/realmrecyclerview/RealmRecyclerView.java b/library/src/main/java/co/moonmonkeylabs/realmrecyclerview/RealmRecyclerView.java index fc939b3..2697998 100644 --- a/library/src/main/java/co/moonmonkeylabs/realmrecyclerview/RealmRecyclerView.java +++ b/library/src/main/java/co/moonmonkeylabs/realmrecyclerview/RealmRecyclerView.java @@ -353,6 +353,10 @@ public void smoothScrollToPosition(int position) { recyclerView.smoothScrollToPosition(position); } + public void scrollToPosition(int position) { + recyclerView.scrollToPosition(position); + } + // // Pull-to-refresh //