Remove RTL swap of tapping edges in story viewer.

This commit is contained in:
Alex Hart
2022-10-14 10:40:26 -03:00
parent 957f8754e1
commit 9bb834e9f5

View File

@@ -1073,24 +1073,8 @@ class StoryViewerPageFragment :
fun onActionUp(e: MotionEvent) {
if (e.x < container.measuredWidth * getLeftBoundary()) {
performLeftAction()
onGoToPrevious()
} else if (e.x > container.measuredWidth - (container.measuredWidth * getRightBoundary())) {
performRightAction()
}
}
private fun performLeftAction() {
if (container.layoutDirection == View.LAYOUT_DIRECTION_RTL) {
onGoToNext()
} else {
onGoToPrevious()
}
}
private fun performRightAction() {
if (container.layoutDirection == View.LAYOUT_DIRECTION_RTL) {
onGoToPrevious()
} else {
onGoToNext()
}
}