mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 05:13:58 +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 {
|
protocol PlacePageInfoViewControllerDelegate: AnyObject {
|
||||||
var shouldShowOpenInApp: Bool { get }
|
var shouldShowOpenInApp: Bool { get }
|
||||||
|
|
||||||
func didPressCall()
|
func didPressCall(to phone: PlacePagePhone)
|
||||||
func didPressWebsite()
|
func didPressWebsite()
|
||||||
func didPressWebsiteMenu()
|
func didPressWebsiteMenu()
|
||||||
func didPressWikipedia()
|
func didPressWikipedia()
|
||||||
@@ -166,7 +166,7 @@ class PlacePageInfoViewController: UIViewController {
|
|||||||
icon: UIImage(named: "ic_placepage_phone_number"),
|
icon: UIImage(named: "ic_placepage_phone_number"),
|
||||||
style: cellStyle,
|
style: cellStyle,
|
||||||
tapHandler: { [weak self] in
|
tapHandler: { [weak self] in
|
||||||
self?.delegate?.didPressCall()
|
self?.delegate?.didPressCall(to: phone)
|
||||||
},
|
},
|
||||||
longPressHandler: { [weak self] in
|
longPressHandler: { [weak self] in
|
||||||
self?.delegate?.didCopy(phone.phone)
|
self?.delegate?.didCopy(phone.phone)
|
||||||
|
|||||||
@@ -65,8 +65,8 @@ extension PlacePageInteractor: PlacePageInfoViewControllerDelegate {
|
|||||||
!OpenInApplication.availableApps.isEmpty
|
!OpenInApplication.availableApps.isEmpty
|
||||||
}
|
}
|
||||||
|
|
||||||
func didPressCall() {
|
func didPressCall(to phone: PlacePagePhone) {
|
||||||
MWMPlacePageManagerHelper.call(placePageData.infoData?.phone)
|
MWMPlacePageManagerHelper.call(phone)
|
||||||
}
|
}
|
||||||
|
|
||||||
func didPressWebsite() {
|
func didPressWebsite() {
|
||||||
|
|||||||
Reference in New Issue
Block a user