make switching to landscape less sensitive

This commit is contained in:
tibbi 2017-11-05 11:38:54 +01:00
parent 03675f67ea
commit 7320798931
1 changed files with 4 additions and 6 deletions

View File

@ -497,12 +497,10 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave
return return
} }
val currOrient = if (orientation in 45..134) { val currOrient = when (orientation) {
ORIENT_LANDSCAPE_RIGHT in 75..134 -> ORIENT_LANDSCAPE_RIGHT
} else if (orientation in 225..314) { in 225..289 -> ORIENT_LANDSCAPE_LEFT
ORIENT_LANDSCAPE_LEFT else -> ORIENT_PORTRAIT
} else {
ORIENT_PORTRAIT
} }
if (currOrient != mLastHandledOrientation) { if (currOrient != mLastHandledOrientation) {