From d6f738f8a9b0e037838950c06bb7a60cf3bf7450 Mon Sep 17 00:00:00 2001 From: aAbed <39409020+TheAabedKhan@users.noreply.github.com> Date: Thu, 26 Oct 2023 20:05:34 +0545 Subject: [PATCH] fix: unable to use custom API (#1435) --- lib/services/manager_api.dart | 1 - .../views/settings/settingsFragment/settings_manage_api_url.dart | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/manager_api.dart b/lib/services/manager_api.dart index f18b16d23e..90699479af 100644 --- a/lib/services/manager_api.dart +++ b/lib/services/manager_api.dart @@ -80,7 +80,6 @@ class ManagerAPI { if (url.isEmpty || url == ' ') { url = defaultApiUrl; } - await _revancedAPI.initialize(url); await _revancedAPI.clearAllCache(); await _prefs.setString('apiUrl', url); } diff --git a/lib/ui/views/settings/settingsFragment/settings_manage_api_url.dart b/lib/ui/views/settings/settingsFragment/settings_manage_api_url.dart index 964254beb5..6fa1ccc1dd 100644 --- a/lib/ui/views/settings/settingsFragment/settings_manage_api_url.dart +++ b/lib/ui/views/settings/settingsFragment/settings_manage_api_url.dart @@ -67,6 +67,7 @@ class SManageApiUrl extends BaseViewModel { apiUrl = 'https://$apiUrl'; } _managerAPI.setApiUrl(apiUrl); + _toast.showBottom('settingsView.restartAppForChanges'); Navigator.of(context).pop(); }, ),