mirror of
https://github.com/CherretGit/zaprett-app.git
synced 2025-12-10 05:29:37 +05:00
change NoHostsCard and it's logic, added getAllStrategies(prefs).isEmpty() testing
This commit is contained in:
@@ -188,8 +188,8 @@ class StrategySelectionViewModel(application: Application) : AndroidViewModel(ap
|
||||
}
|
||||
|
||||
fun checkHosts() {
|
||||
if (getActiveLists(prefs).isEmpty()) noHostsCard.value = true
|
||||
Log.d("getActiveLists.isEmpty", getActiveLists(prefs).isEmpty().toString())
|
||||
if (getActiveLists(prefs).isEmpty() || getAllStrategies(prefs).isEmpty()) noHostsCard.value = true
|
||||
Log.d("getActiveLists.isEmpty || getAllStrategies.isEmpty", getActiveLists(prefs).isEmpty().toString())
|
||||
}
|
||||
fun startVpn() {
|
||||
ContextCompat.startForegroundService(context, Intent(context, ByeDpiVpnService::class.java).apply { action = "START_VPN" })
|
||||
|
||||
@@ -114,8 +114,8 @@
|
||||
<string name="hint_enter_probe_timeout">Введите таймаут пробы</string>
|
||||
<string name="strategy_selection_info_title">Информация</string>
|
||||
<string name="strategy_selection_info_msg">"В этом разделе настроек приложения представлен перебор стратегий\n Подбор проходит среди скачанных стратегий, поэтому заранее скачайте из репозитория или добавьте из файловой системы интересующие вас стратегии для сравнения. \n Перед началом так же выберете один или несколько листов доменов на вкладке \"Листы\", затем нажмите на \"Начать подбор\". Не используйте для перебора списки с большим количеством доменов."</string>
|
||||
<string name="selection_no_hosts_title">Нет активных листов</string>
|
||||
<string name="selection_no_hosts_message">Не обнаружено активных списков хостов, включите один или несколько, иначе подбор не сработает</string>
|
||||
<string name="selection_no_hosts_title">Нет включенных листов/стратегий</string>
|
||||
<string name="selection_no_hosts_message">Не обнаружено активных списков хостов, либо доступных стратегий. Включите один или несколько, или скачайте стратегии для проверки, иначе подбор не сработает</string>
|
||||
<string name="selection_available_domains">Доступные домены</string>
|
||||
<string name="no_storage_permission_message">Нет разрешения на доступ к файлам</string>
|
||||
<string name="reset_settings_title">Сброс настроек</string>
|
||||
|
||||
@@ -119,8 +119,8 @@
|
||||
<string name="hint_enter_probe_timeout">Enter probe timeout</string>
|
||||
<string name="strategy_selection_info_title">Tip</string>
|
||||
<string name="strategy_selection_info_msg">This section of the application settings allows you to iterate through strategies.\n The selection is based on downloaded strategies, so download the strategies you\'re interested in from the repository or add them from the file system for comparison.\n Before starting, select one or more domain lists in the \"Lists\" tab, then click \"Start selection\". Avoid using lists with a large number of domains.</string>
|
||||
<string name="selection_no_hosts_title">No active hosts</string>
|
||||
<string name="selection_no_hosts_message">No active host lists found, please enable one or more, otherwise the selection will not work</string>
|
||||
<string name="selection_no_hosts_title">No active hosts/strategies</string>
|
||||
<string name="selection_no_hosts_message">No active host lists or available strategies were found. Please enable one or more, or download strategies for testing, otherwise the selection will not work.</string>
|
||||
<string name="selection_available_domains">Available domains</string>
|
||||
<string name="no_storage_permission_message">Missing permission to access files</string>
|
||||
<string name="reset_settings_title">Reset settings</string>
|
||||
|
||||
Reference in New Issue
Block a user