mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[ios] Pass the phone to didPressCall
This will allow us to know which phone the user has picked when we've added support for multiple phone numbers. Signed-off-by: Eugene Nikolsky <omaps@egeek.me>
This commit is contained in:
committed by
Konstantin Pastbin
parent
56c4918e93
commit
a3ba5c53b6
@@ -74,7 +74,7 @@ class InfoItemViewController: UIViewController {
|
||||
protocol PlacePageInfoViewControllerDelegate: AnyObject {
|
||||
var shouldShowOpenInApp: Bool { get }
|
||||
|
||||
func didPressCall()
|
||||
func didPressCall(to phone: PlacePagePhone)
|
||||
func didPressWebsite()
|
||||
func didPressWebsiteMenu()
|
||||
func didPressWikipedia()
|
||||
@@ -166,7 +166,7 @@ class PlacePageInfoViewController: UIViewController {
|
||||
icon: UIImage(named: "ic_placepage_phone_number"),
|
||||
style: cellStyle,
|
||||
tapHandler: { [weak self] in
|
||||
self?.delegate?.didPressCall()
|
||||
self?.delegate?.didPressCall(to: phone)
|
||||
},
|
||||
longPressHandler: { [weak self] in
|
||||
self?.delegate?.didCopy(phone.phone)
|
||||
|
||||
@@ -65,8 +65,8 @@ extension PlacePageInteractor: PlacePageInfoViewControllerDelegate {
|
||||
!OpenInApplication.availableApps.isEmpty
|
||||
}
|
||||
|
||||
func didPressCall() {
|
||||
MWMPlacePageManagerHelper.call(placePageData.infoData?.phone)
|
||||
func didPressCall(to phone: PlacePagePhone) {
|
||||
MWMPlacePageManagerHelper.call(phone)
|
||||
}
|
||||
|
||||
func didPressWebsite() {
|
||||
|
||||
Reference in New Issue
Block a user