Remove RTL swap of tapping edges in story viewer.

fork-5.53.8
Alex Hart 2022-10-14 10:40:26 -03:00
rodzic 957f8754e1
commit 9bb834e9f5
1 zmienionych plików z 1 dodań i 17 usunięć

Wyświetl plik

@ -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()
}
}