diff options
author | dan <dan.abramov@gmail.com> | 2024-06-14 19:01:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-14 18:01:31 +0100 |
commit | 94c1f4968d7a09e04389b25a17f0125ffc375db3 (patch) | |
tree | b2b07647a2b36131205134a83615e9b5b707d256 /patches/expo-haptics+13.0.1.patch | |
parent | f8c58a68a9a78689f9f636f3d739d9574a18ff7b (diff) | |
download | voidsky-94c1f4968d7a09e04389b25a17f0125ffc375db3.tar.zst |
Resolve patch-package warnings (#4520)
Diffstat (limited to 'patches/expo-haptics+13.0.1.patch')
-rw-r--r-- | patches/expo-haptics+13.0.1.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/patches/expo-haptics+13.0.1.patch b/patches/expo-haptics+13.0.1.patch new file mode 100644 index 000000000..9c7b9a666 --- /dev/null +++ b/patches/expo-haptics+13.0.1.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/expo-haptics/android/src/main/java/expo/modules/haptics/HapticsModule.kt b/node_modules/expo-haptics/android/src/main/java/expo/modules/haptics/HapticsModule.kt +index 1520465..6ea988a 100644 +--- a/node_modules/expo-haptics/android/src/main/java/expo/modules/haptics/HapticsModule.kt ++++ b/node_modules/expo-haptics/android/src/main/java/expo/modules/haptics/HapticsModule.kt +@@ -42,7 +42,7 @@ class HapticsModule : Module() { + + private fun vibrate(type: HapticsVibrationType) { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { +- vibrator.vibrate(VibrationEffect.createWaveform(type.timings, type.amplitudes, -1)) ++ vibrator.vibrate(VibrationEffect.createWaveform(type.oldSDKPattern, intArrayOf(0, 100), -1)) + } else { + @Suppress("DEPRECATION") + vibrator.vibrate(type.oldSDKPattern, -1) |