From 1a3d52e1c2fcc56e4d1665d9b1d864c15fc8547e Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 8 Nov 2017 20:46:28 +0100 Subject: [PATCH] adjusting sensitivity of rotating by Device Rotation --- .../simplemobiletools/gallery/activities/ViewPagerActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt index 5db8b92ce..3d6f319e0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -218,8 +218,8 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View mOrientationEventListener = object : OrientationEventListener(this, SensorManager.SENSOR_DELAY_NORMAL) { override fun onOrientationChanged(orientation: Int) { val currOrient = when (orientation) { - in 75..134 -> ORIENT_LANDSCAPE_RIGHT - in 225..289 -> ORIENT_LANDSCAPE_LEFT + in 60..134 -> ORIENT_LANDSCAPE_RIGHT + in 225..299 -> ORIENT_LANDSCAPE_LEFT else -> ORIENT_PORTRAIT }