check device orientation less frequently

This commit is contained in:
tibbi 2017-04-01 22:09:54 +02:00
parent 8260f23e9c
commit 824ad221df
1 changed files with 1 additions and 1 deletions

View File

@ -460,7 +460,7 @@ class MainActivity : SimpleActivity(), SensorEventListener, PreviewListener, Pho
checkFlash() checkFlash()
val accelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) 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) { if (!mIsInPhotoMode) {
initVideoButtons() initVideoButtons()