0
0
mirror of https://github.com/markusfisch/BinaryEye.git synced 2024-09-19 19:42:18 +02:00

Increase the duration of the vibration

Because 100ms is too short for some devices and the vibration
cannot be felt.

This should fix https://github.com/markusfisch/BinaryEye/issues/334
This commit is contained in:
Markus Fisch 2022-12-21 18:17:03 +01:00
parent 09ff334c4c
commit 6a63bc4e06

View File

@ -5,7 +5,7 @@ import android.os.Build
import android.os.VibrationEffect
import android.os.Vibrator
private const val DURATION_IN_MS = 100L
private const val DURATION_IN_MS = 250L
private val beforeO = Build.VERSION.SDK_INT < Build.VERSION_CODES.O
private val errorPatternTimings = longArrayOf(