fix: unable to use custom API (#1435)

This commit is contained in:
aAbed 2023-10-26 20:05:34 +05:45 committed by oSumAtrIX
parent e06e1bdcbe
commit b53bc280b6
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,6 @@ class ManagerAPI {
if (url.isEmpty || url == ' ') {
url = defaultApiUrl;
}
await _revancedAPI.initialize(url);
await _revancedAPI.clearAllCache();
await _prefs.setString('apiUrl', url);
}

View File

@ -67,6 +67,7 @@ class SManageApiUrl extends BaseViewModel {
apiUrl = 'https://$apiUrl';
}
_managerAPI.setApiUrl(apiUrl);
_toast.showBottom('settingsView.restartAppForChanges');
Navigator.of(context).pop();
},
),