diff --git a/app/src/main/java/com/android/dippid/DebugFragment.kt b/app/src/main/java/com/android/dippid/DebugFragment.kt index d017214..57f5be5 100644 --- a/app/src/main/java/com/android/dippid/DebugFragment.kt +++ b/app/src/main/java/com/android/dippid/DebugFragment.kt @@ -62,17 +62,17 @@ class DebugFragment : Fragment(R.layout.fragment_debug), SensorEventListener { sensorManager.registerListener( this, sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), - SensorManager.SENSOR_DELAY_NORMAL + SensorManager.SENSOR_DELAY_FASTEST ) sensorManager.registerListener( this, sensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE), - SensorManager.SENSOR_DELAY_NORMAL + SensorManager.SENSOR_DELAY_FASTEST ) sensorManager.registerListener( this, sensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY), - SensorManager.SENSOR_DELAY_NORMAL + SensorManager.SENSOR_DELAY_FASTEST ) // init UI diff --git a/build.gradle b/build.gradle index b090095..bba627a 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { mavenCentral() } dependencies { - classpath "com.android.tools.build:gradle:4.2.1" + classpath 'com.android.tools.build:gradle:4.2.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong