From 3b353c4037f3c52710287777a17110dad6b9d720 Mon Sep 17 00:00:00 2001 From: pacien Date: Sat, 11 Aug 2018 01:54:04 +0200 Subject: Refactor part of Status activity --- app/src/main/res/layout/dialog_node_details.xml | 37 ------ .../res/layout/fragment_network_status_header.xml | 147 --------------------- .../res/layout/status_activity_list_header.xml | 46 +++++++ .../res/layout/status_network_info_fragment.xml | 145 ++++++++++++++++++++ .../main/res/layout/status_node_info_dialog.xml | 37 ++++++ app/src/main/res/menu/menu_status.xml | 2 +- app/src/main/res/values-zh-rCN/strings.xml | 28 ++-- app/src/main/res/values-zh-rHK/strings.xml | 28 ++-- app/src/main/res/values-zh-rTW/strings.xml | 28 ++-- app/src/main/res/values/strings.xml | 38 +++--- 10 files changed, 293 insertions(+), 243 deletions(-) delete mode 100644 app/src/main/res/layout/dialog_node_details.xml delete mode 100644 app/src/main/res/layout/fragment_network_status_header.xml create mode 100644 app/src/main/res/layout/status_activity_list_header.xml create mode 100644 app/src/main/res/layout/status_network_info_fragment.xml create mode 100644 app/src/main/res/layout/status_node_info_dialog.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/dialog_node_details.xml b/app/src/main/res/layout/dialog_node_details.xml deleted file mode 100644 index 938c2a2..0000000 --- a/app/src/main/res/layout/dialog_node_details.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - diff --git a/app/src/main/res/layout/fragment_network_status_header.xml b/app/src/main/res/layout/fragment_network_status_header.xml deleted file mode 100644 index b96229d..0000000 --- a/app/src/main/res/layout/fragment_network_status_header.xml +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/layout/status_activity_list_header.xml b/app/src/main/res/layout/status_activity_list_header.xml new file mode 100644 index 0000000..8030481 --- /dev/null +++ b/app/src/main/res/layout/status_activity_list_header.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/status_network_info_fragment.xml b/app/src/main/res/layout/status_network_info_fragment.xml new file mode 100644 index 0000000..8038180 --- /dev/null +++ b/app/src/main/res/layout/status_network_info_fragment.xml @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/status_node_info_dialog.xml b/app/src/main/res/layout/status_node_info_dialog.xml new file mode 100644 index 0000000..36f3e86 --- /dev/null +++ b/app/src/main/res/layout/status_node_info_dialog.xml @@ -0,0 +1,37 @@ + + + + + + + + + diff --git a/app/src/main/res/menu/menu_status.xml b/app/src/main/res/menu/menu_status.xml index e6baf0f..a6ad5bf 100644 --- a/app/src/main/res/menu/menu_status.xml +++ b/app/src/main/res/menu/menu_status.xml @@ -21,7 +21,7 @@ + tools:context="org.pacien.tincapp.activities.status.StatusActivity"> 连接到网络 请求 VPN 权限 路径信息 - 节点信息 + 节点信息 工具 配置目录 日志目录 Tinc 二进制文件 - 网络信息 - 网络名称 - IP 地址 - 路由 - DNS 服务器 - 搜索域 - 允许的应用程序 - 不允许的应用程序 - 允许旁路 - 节点 + 网络信息 + 网络名称 + IP 地址 + 路由 + DNS 服务器 + 搜索域 + 允许的应用程序 + 不允许的应用程序 + 允许旁路 + 节点 错误 新建网络 加入网络 @@ -93,7 +93,7 @@ 加密/解密私钥 无法解密私钥:\n%1$s - - - + + + diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml index c56e1ab..4804d29 100644 --- a/app/src/main/res/values-zh-rHK/strings.xml +++ b/app/src/main/res/values-zh-rHK/strings.xml @@ -46,21 +46,21 @@ 連接到網絡 請求 VPN 權限 路徑信息 - 節點信息 + 節點信息 工具 配置目錄 日誌目錄 Tinc 二進制文件 - 網絡信息 - 網絡名稱 - IP 地址 - 路由 - DNS 服務器 - 搜索域 - 允許的應用程序 - 不允許的應用程序 - 允許旁路 - 節點 + 網絡信息 + 網絡名稱 + IP 地址 + 路由 + DNS 服務器 + 搜索域 + 允許的應用程序 + 不允許的應用程序 + 允許旁路 + 節點 錯誤 新建網絡 加入網絡 @@ -93,7 +93,7 @@ 加密/解密私鑰 無法解密私鑰:\n%1$s - - - + + + diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index b110498..a7e37d5 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -46,21 +46,21 @@ 連線到網路 請求 VPN 許可權 路徑資訊 - 節點資訊 + 節點資訊 工具 配置目錄 日誌目錄 Tinc 二進位制檔案 - 網路資訊 - 網路名稱 - IP 地址 - 路由 - DNS 伺服器 - 搜尋域 - 允許的應用程式 - 不允許的應用程式 - 允許旁路 - 節點 + 網路資訊 + 網路名稱 + IP 地址 + 路由 + DNS 伺服器 + 搜尋域 + 允許的應用程式 + 不允許的應用程式 + 允許旁路 + 節點 錯誤 新建網路 加入網路 @@ -93,7 +93,7 @@ 加密/解密私鑰 無法解密私鑰:\n%1$s - - - + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index fc689fd..a27fab7 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -45,17 +45,6 @@ Connect to network Request VPN permissions - Node info - Network info - Network name - IP addresses - Routes - DNS servers - Search domains - Allowed applications - Disallowed applications - Allow bypass - Nodes Error Unable to start tinc Unlock tinc private keys @@ -85,7 +74,6 @@ Disconnecting VPN… A passphrase is required to unlock the keyring. Tinc daemon exited during startup:\n%1$s\nCheck the logs for more details. - Loading… Log level set to %1$d. Logging paused. Could not apply network interface configuration:\n%1$s @@ -97,10 +85,6 @@ Could not read network interface configuration:\n%1$s Could not read tinc private keys:\n%1$s - none - yes - no - Path info Configuration directory @@ -130,4 +114,26 @@ New passphrase\n(leave empty to decrypt) Apply Encrypting/decrypting private keys + + + Nodes + Network info + + Network name + IP addresses + Routes + DNS servers + Search domains + Allowed applications + Disallowed applications + Allow bypass + + yes + no + none + + Loading… + Loading… + Node info + Close -- cgit v1.2.3