From 824ad221df441e1df2576d7eb584a0e09fe4a5ca Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 1 Apr 2017 22:09:54 +0200 Subject: [PATCH] check device orientation less frequently --- .../com/simplemobiletools/camera/activities/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt index 2cc79361..79e00485 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt @@ -460,7 +460,7 @@ class MainActivity : SimpleActivity(), SensorEventListener, PreviewListener, Pho checkFlash() val accelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) - mSensorManager.registerListener(this, accelerometer, SensorManager.SENSOR_DELAY_GAME) + mSensorManager.registerListener(this, accelerometer, SensorManager.SENSOR_DELAY_NORMAL) if (!mIsInPhotoMode) { initVideoButtons()