From 097411136b6b50e73ed70015151cbcc3bb8050a9 Mon Sep 17 00:00:00 2001 From: Robinson Date: Tue, 14 Feb 2023 13:04:00 +0100 Subject: [PATCH] Updated defaults for shake() --- src/dorkbox/notify/Notify.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dorkbox/notify/Notify.kt b/src/dorkbox/notify/Notify.kt index 1baa1f7..0214edf 100755 --- a/src/dorkbox/notify/Notify.kt +++ b/src/dorkbox/notify/Notify.kt @@ -417,7 +417,7 @@ class Notify private constructor() { * @param durationInMillis now long it will shake * @param amplitude a measure of how much it needs to shake. 4 is a small amount of shaking, 10 is a lot. */ - fun shake(durationInMillis: Int, amplitude: Int): Notify { + fun shake(durationInMillis: Int = 2000, amplitude: Int = 4): Notify { shakeDurationInMillis = durationInMillis shakeAmplitude = amplitude