diff options
Diffstat (limited to 'src/com/android/tv/guide/TimelineRow.java')
-rw-r--r-- | src/com/android/tv/guide/TimelineRow.java | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/com/android/tv/guide/TimelineRow.java b/src/com/android/tv/guide/TimelineRow.java index 3f0c8678..b6a10ab1 100644 --- a/src/com/android/tv/guide/TimelineRow.java +++ b/src/com/android/tv/guide/TimelineRow.java @@ -40,19 +40,16 @@ public class TimelineRow extends TimelineGridView { getLayoutManager().scrollToPosition(0); } - /** - * Returns the current scroll position - */ + /** Returns the current scroll position */ public int getScrollOffset() { return Math.abs(mScrollPosition); } - /** - * Scrolls horizontally to the given position. - */ + /** Scrolls horizontally to the given position. */ public void scrollTo(int scrollOffset, boolean smoothScroll) { - int dx = (scrollOffset - getScrollOffset()) - * (getLayoutDirection() == LAYOUT_DIRECTION_LTR ? 1 : -1); + int dx = + (scrollOffset - getScrollOffset()) + * (getLayoutDirection() == LAYOUT_DIRECTION_LTR ? 1 : -1); if (smoothScroll) { smoothScrollBy(dx, 0); } else { |