diff --git a/submodules/SettingsUI/Sources/Language Selection/LocalizationListControllerNode.swift b/submodules/SettingsUI/Sources/Language Selection/LocalizationListControllerNode.swift index c480f1bcd9..4db29cc178 100644 --- a/submodules/SettingsUI/Sources/Language Selection/LocalizationListControllerNode.swift +++ b/submodules/SettingsUI/Sources/Language Selection/LocalizationListControllerNode.swift @@ -453,7 +453,7 @@ final class LocalizationListControllerNode: ViewControllerTracingNode { if let localizationListState = localizationListState, !localizationListState.availableOfficialLocalizations.isEmpty { strongSelf.currentListState = localizationListState - if #available(iOS 15.0, *) { + if #available(iOS 12.0, *) { entries.append(.translateTitle(text: presentationData.strings.Localization_TranslateMessages.uppercased())) entries.append(.translate(text: presentationData.strings.Localization_ShowTranslate, value: showTranslate)) if showTranslate { diff --git a/submodules/ShareController/Sources/ShareControllerNode.swift b/submodules/ShareController/Sources/ShareControllerNode.swift index a6e1ba9bad..eba6995361 100644 --- a/submodules/ShareController/Sources/ShareControllerNode.swift +++ b/submodules/ShareController/Sources/ShareControllerNode.swift @@ -652,9 +652,19 @@ final class ShareControllerNode: ViewControllerTracingNode, UIScrollViewDelegate let delay: Double if let strongSelf = self, let contentNode = strongSelf.contentNode as? ShareProlongedLoadingContainerNode { delay = contentNode.completionDuration + + if shouldDelay { + Queue.mainQueue().after(delay - 3.0, { + if strongSelf.hapticFeedback == nil { + strongSelf.hapticFeedback = HapticFeedback() + } + strongSelf.hapticFeedback?.success() + }) + } } else { delay = max(minDelay, (timestamp + minDelay) - CACurrentMediaTime()) } + Queue.mainQueue().after(delay, { self?.animateOut(shared: true, completion: { self?.dismiss?(true) @@ -701,11 +711,6 @@ final class ShareControllerNode: ViewControllerTracingNode, UIScrollViewDelegate contentNode.state = .done if fromForeignApp { if !wasDone { - if strongSelf.hapticFeedback == nil { - strongSelf.hapticFeedback = HapticFeedback() - } - strongSelf.hapticFeedback?.success() - wasDone = true doneImpl(true) }