From f49695f4179948df945ec4a87172982b696ef181 Mon Sep 17 00:00:00 2001 From: OmarHatem Date: Mon, 13 Feb 2023 20:44:23 +0200 Subject: [PATCH] Fix support links/emails not opening --- .../screens/settings/widgets/settings_link_provider_cell.dart | 4 ++-- lib/view_model/support_view_model.dart | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/src/screens/settings/widgets/settings_link_provider_cell.dart b/lib/src/screens/settings/widgets/settings_link_provider_cell.dart index 51fcc16d5..1b67f60e4 100644 --- a/lib/src/screens/settings/widgets/settings_link_provider_cell.dart +++ b/lib/src/screens/settings/widgets/settings_link_provider_cell.dart @@ -30,6 +30,6 @@ class SettingsLinkProviderCell extends StandardListRow { color: Palette.blueCraiola)); static void _launchUrl(String url) async { - if (await canLaunch(url)) await launch(url, forceSafariVC: false); + await launch(url, forceSafariVC: false); } -} \ No newline at end of file +} diff --git a/lib/view_model/support_view_model.dart b/lib/view_model/support_view_model.dart index 3b919e750..4e602089a 100644 --- a/lib/view_model/support_view_model.dart +++ b/lib/view_model/support_view_model.dart @@ -7,7 +7,6 @@ import 'package:flutter/material.dart'; import 'package:mobx/mobx.dart'; import 'package:url_launcher/url_launcher.dart'; import 'package:cake_wallet/wallet_type_utils.dart'; -import 'package:cake_wallet/wallet_type_utils.dart'; part 'support_view_model.g.dart'; @@ -19,7 +18,7 @@ abstract class SupportViewModelBase with Store { RegularListItem( title: S.current.faq, handler: (BuildContext context) async { - if (await canLaunch(url)) await launch(url); + await launch(url); }, ), LinkListItem(