make switching to landscape less sensitive
This commit is contained in:
parent
03675f67ea
commit
7320798931
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue