Skip to content

Commit 3032270

Browse files
Migrated media/zoomControllers package to kotlin (#6204)
* Rename .java to .kt * Migrated media/zoomControllers package to kotlin --------- Co-authored-by: Nicolas Raoul <[email protected]>
1 parent 972bf78 commit 3032270

24 files changed

+1959
-2130
lines changed

app/src/main/java/fr/free/nrw/commons/media/ZoomableActivity.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ class ZoomableActivity : BaseActivity() {
272272
* Handles down swipe action
273273
*/
274274
private fun onDownSwiped() {
275-
if (binding.zoomable.zoomableController?.isIdentity == false) {
275+
if (!binding.zoomable.getZoomableController().isIdentity()) {
276276
return
277277
}
278278

@@ -342,7 +342,7 @@ class ZoomableActivity : BaseActivity() {
342342
* Handles up swipe action
343343
*/
344344
private fun onUpSwiped() {
345-
if (binding.zoomable.zoomableController?.isIdentity == false) {
345+
if (!binding.zoomable.getZoomableController().isIdentity()) {
346346
return
347347
}
348348

@@ -415,7 +415,7 @@ class ZoomableActivity : BaseActivity() {
415415
* Handles right swipe action
416416
*/
417417
private fun onRightSwiped(showAlreadyActionedImages: Boolean) {
418-
if (binding.zoomable.zoomableController?.isIdentity == false) {
418+
if (!binding.zoomable.getZoomableController().isIdentity()) {
419419
return
420420
}
421421

@@ -452,7 +452,7 @@ class ZoomableActivity : BaseActivity() {
452452
* Handles left swipe action
453453
*/
454454
private fun onLeftSwiped(showAlreadyActionedImages: Boolean) {
455-
if (binding.zoomable.zoomableController?.isIdentity == false) {
455+
if (!binding.zoomable.getZoomableController().isIdentity()) {
456456
return
457457
}
458458

app/src/main/java/fr/free/nrw/commons/media/zoomControllers/gestures/MultiPointerGestureDetector.java

Lines changed: 0 additions & 256 deletions
This file was deleted.

0 commit comments

Comments
 (0)