Use `EFFECT_TICK` instead of `CLICK` as OSC vibration effect

This commit is contained in:
lynxnb 2023-03-22 17:40:00 +01:00 committed by Niccolò Betto
parent 88e6fc9888
commit 83bc93601f
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class OnScreenControllerView @JvmOverloads constructor(context : Context, attrs
// Populated externally by the activity, as retrieving the vibrator service inside the view crashes the layout editor
lateinit var vibrator : Vibrator
private val effectClick = VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK)
private val effectClick = VibrationEffect.createPredefined(VibrationEffect.EFFECT_TICK)
// Ensure controls init happens after editInfo is initialized so that the buttons have a valid reference to it
private val controls = Controls(this)