We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69b00fe commit 2797e52Copy full SHA for 2797e52
app/src/main/java/com/geode/launcher/utils/GeodeUtils.kt
@@ -476,6 +476,10 @@ object GeodeUtils {
476
*/
477
@JvmStatic
478
fun vibrate(ms: Long) {
479
+ if (ms == 0L) {
480
+ getVibrator()?.cancel()
481
+ }
482
+
483
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
484
getVibrator()?.vibrate(VibrationEffect.createOneShot(ms, VibrationEffect.DEFAULT_AMPLITUDE))
485
} else {
0 commit comments