Skip to content

Commit

Permalink
[1.x] Haptic Fix (mlemgroup#1128)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjmarf authored Jul 4, 2024
1 parent 42b255e commit 6adb0ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mlem/Haptics/Haptic Manager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
// Created by Eric Andrews on 2023-07-17.
//

import AVFAudio
import CoreHaptics
import Foundation
import SwiftUI
import AVFAudio

class HapticManager {
// MARK: Members and init
Expand Down Expand Up @@ -44,7 +44,7 @@ class HapticManager {
@discardableResult func initEngine() -> CHHapticEngine? {
if CHHapticEngine.capabilitiesForHardware().supportsHaptics {
do {
let ret = try CHHapticEngine(audioSession: AVAudioSession.sharedInstance())
let ret = try CHHapticEngine(audioSession: nil)
try ret.start()
return ret
} catch {
Expand Down

0 comments on commit 6adb0ec

Please sign in to comment.