Increase vibration duration for short vibration

20ms was almost not recognizable for samsung phones

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2023-02-24 17:44:31 +01:00
parent dc2314f86b
commit a339d64d37
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -25,7 +25,7 @@ import android.os.VibrationEffect
import android.os.Vibrator
object VibrationUtils {
private const val SHORT_VIBRATE: Long = 20
private const val SHORT_VIBRATE: Long = 100
fun vibrateShort(context: Context) {
val vibrator = context.getSystemService(Context.VIBRATOR_SERVICE) as Vibrator