mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Remove RTL swap of tapping edges in story viewer.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user