The change adds interactive check to see if smooth scroll is actually needed. If user doesn't see the library screen there's no point in doing smooth scroll. Besides, for old Android versions (like 4.x) View.getFirstVisiblePosition, View.getLastVisiblePosition calls are working only if view is currently visible.