Fixed random generator
This commit is contained in:
@ -93,7 +93,7 @@ class MainActivity : ComponentActivity() {
|
|||||||
onClick = {
|
onClick = {
|
||||||
vibrator.vibrate(
|
vibrator.vibrate(
|
||||||
VibrationEffect.createWaveform(
|
VibrationEffect.createWaveform(
|
||||||
LongArray(Random.Default.nextInt(10)){
|
LongArray(Random.Default.nextInt(2,10)){
|
||||||
Random.Default.nextLong(100, 2000)},
|
Random.Default.nextLong(100, 2000)},
|
||||||
1))
|
1))
|
||||||
isVibrating = true
|
isVibrating = true
|
||||||
|
|||||||
Reference in New Issue
Block a user