Skip to content

Commit

Permalink
refactor(ScrollTopListener): getScrollUpStandardPosition() 메서드를 expre…
Browse files Browse the repository at this point in the history
…ssion 형식으로 변경
  • Loading branch information
tmdgh1592 committed Nov 8, 2023
1 parent 57f9db4 commit 64fabd3
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,10 @@ class ScrollTopListener(
return targetView.context.resources.getBoolean(R.bool.is_landscape)
}

private fun getScrollUpStandardPosition(isLandScape: Boolean): Int {
val scrollUpStandard = if (isLandScape) {
LANDSCAPE_SCROLL_UP_STANDARD_POSITION
} else {
PORTRAIT_SCROLL_UP_STANDARD_POSITION
}
return scrollUpStandard
private fun getScrollUpStandardPosition(isLandScape: Boolean): Int = if (isLandScape) {
LANDSCAPE_SCROLL_UP_STANDARD_POSITION
} else {
PORTRAIT_SCROLL_UP_STANDARD_POSITION
}

override fun onScrollStateChanged(recyclerView: RecyclerView, newState: Int) {
Expand Down

0 comments on commit 64fabd3

Please sign in to comment.