mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
Location view fixes
This commit is contained in:
parent
d164128145
commit
33d946f8db
@ -204,6 +204,8 @@ public final class LocationViewController: ViewController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
strongSelf.dismissAllTooltips()
|
||||||
strongSelf.present(
|
strongSelf.present(
|
||||||
UndoOverlayController(
|
UndoOverlayController(
|
||||||
presentationData: strongSelf.presentationData,
|
presentationData: strongSelf.presentationData,
|
||||||
@ -280,6 +282,7 @@ public final class LocationViewController: ViewController {
|
|||||||
text = strongSelf.presentationData.strings.Location_ProximityAlertSetTextGroup(distanceString).0
|
text = strongSelf.presentationData.strings.Location_ProximityAlertSetTextGroup(distanceString).0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
strongSelf.dismissAllTooltips()
|
||||||
strongSelf.present(
|
strongSelf.present(
|
||||||
UndoOverlayController(
|
UndoOverlayController(
|
||||||
presentationData: strongSelf.presentationData,
|
presentationData: strongSelf.presentationData,
|
||||||
@ -354,6 +357,7 @@ public final class LocationViewController: ViewController {
|
|||||||
text = strongSelf.presentationData.strings.Location_ProximityAlertSetTextGroup(distanceString).0
|
text = strongSelf.presentationData.strings.Location_ProximityAlertSetTextGroup(distanceString).0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
strongSelf.dismissAllTooltips()
|
||||||
strongSelf.present(
|
strongSelf.present(
|
||||||
UndoOverlayController(
|
UndoOverlayController(
|
||||||
presentationData: strongSelf.presentationData,
|
presentationData: strongSelf.presentationData,
|
||||||
@ -450,6 +454,15 @@ public final class LocationViewController: ViewController {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private func dismissAllTooltips() {
|
||||||
|
self.forEachController({ controller in
|
||||||
|
if let controller = controller as? UndoOverlayController {
|
||||||
|
controller.dismissWithCommitAction()
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
override public func loadDisplayNode() {
|
override public func loadDisplayNode() {
|
||||||
super.loadDisplayNode()
|
super.loadDisplayNode()
|
||||||
guard let interaction = self.interaction else {
|
guard let interaction = self.interaction else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user