mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-25 14:16:10 +00:00
chore: Format, b=(no-bug), c=common
This commit is contained in:
@@ -33,7 +33,7 @@ inline UIImpactFeedbackStyle GetNativeHapticFeedbackType(uint32_t type) {
|
||||
nsresult ZenCommonUtils::PlayHapticFeedbackInternal(uint32_t type) {
|
||||
NS_OBJC_BEGIN_TRY_BLOCK_RETURN;
|
||||
auto style = GetNativeHapticFeedbackType(type);
|
||||
if (@available(iOS 10.0, macOS 10.14, *)) {
|
||||
if (@available(macOS 10.14, *)) {
|
||||
UIImpactFeedbackGenerator *generator = [[UIImpactFeedbackGenerator alloc] initWithStyle:style];
|
||||
[generator prepare];
|
||||
[generator impactOccurred];
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
|
||||
FINAL_LIBRARY = "xul"
|
||||
SOURCES += [
|
||||
"ZenShareInternal.mm",
|
||||
"ZenHapticFeedback.mm",
|
||||
"ZenShareInternal.mm",
|
||||
]
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
|
||||
Reference in New Issue
Block a user