From bdc61380a5eddd77318781a1e7e270599eadcc32 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 16 Nov 2017 23:02:49 +0100 Subject: [PATCH] make it easier to keep the device in landscape mode --- .../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 7e2f54cb8..1c00f66a8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -228,8 +228,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 60..134 -> ORIENT_LANDSCAPE_RIGHT - in 225..299 -> ORIENT_LANDSCAPE_LEFT + in 75..134 -> ORIENT_LANDSCAPE_RIGHT + in 225..285 -> ORIENT_LANDSCAPE_LEFT else -> ORIENT_PORTRAIT }