Fix crash on Android 12
java.lang.SecurityException: To use the sampling rate of 0 microseconds, app needs to declare the normal permission HIGH_SAMPLING_RATE_SENSORS.
This commit is contained in:
parent
e9f53f6b35
commit
f25c17881d
@ -46,7 +46,7 @@ class RageShake @Inject constructor(private val activity: FragmentActivity,
|
||||
|
||||
shakeDetector = ShakeDetector(this).apply {
|
||||
setSensitivity(vectorPreferences.getRageshakeSensitivity())
|
||||
start(sensorManager)
|
||||
start(sensorManager, SensorManager.SENSOR_DELAY_GAME)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user