mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-01 12:28:33 +01:00
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…
Reference in New Issue
Block a user