mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Update iOS HapticFeedback.vibrate implementation (flutter/engine#3702)
Use AudioServicesPlaySystemSound instead of AudioServicesPlayAlertSound. This avoids the potential of a system beep on devices without support for haptic feedback.
This commit is contained in:
parent
ce354876a8
commit
d657e3889e
@ -77,7 +77,7 @@ using namespace shell;
|
||||
}
|
||||
|
||||
- (void)vibrateHapticFeedback {
|
||||
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
|
||||
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
|
||||
}
|
||||
|
||||
- (void)setSystemChromePreferredOrientations:(NSArray*)orientations {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user