diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/TetheringFragment.kt b/mobile/src/main/java/be/mygod/vpnhotspot/TetheringFragment.kt
index 08d9b4db..5f31a825 100644
--- a/mobile/src/main/java/be/mygod/vpnhotspot/TetheringFragment.kt
+++ b/mobile/src/main/java/be/mygod/vpnhotspot/TetheringFragment.kt
@@ -104,7 +104,7 @@ class TetheringFragment : Fragment(), ServiceConnection {
VIEW_TYPE_WIFI -> R.string.tethering_manage_wifi
VIEW_TYPE_WIFI_LEGACY -> R.string.tethering_manage_wifi_legacy
VIEW_TYPE_BLUETOOTH -> R.string.tethering_manage_bluetooth
- else -> throw IllegalStateException()
+ else -> throw IllegalStateException("Unexpected view type")
})
binding.tetherListener = tetherListener
binding.type = tetherType
@@ -155,7 +155,7 @@ class TetheringFragment : Fragment(), ServiceConnection {
override fun onTetheringStarted() = tetherListener.notifyPropertyChanged(BR.enabledTypes)
override fun onTetheringFailed() {
app.handler.post {
- Toast.makeText(requireContext(), "Android system has failed to start tethering.", Toast.LENGTH_SHORT).show()
+ Toast.makeText(requireContext(), R.string.tethering_manage_failed, Toast.LENGTH_SHORT).show()
}
}
}
diff --git a/mobile/src/main/res/values-zh-rCN/strings.xml b/mobile/src/main/res/values-zh-rCN/strings.xml
index 56c2175a..84a9d7fc 100644
--- a/mobile/src/main/res/values-zh-rCN/strings.xml
+++ b/mobile/src/main/res/values-zh-rCN/strings.xml
@@ -45,6 +45,7 @@
WLAN 热点
WLAN 热点 (旧 API)
蓝牙网络共享
+ Android 系统无法打开网络共享。
已连接设备
%s (正在连接)
diff --git a/mobile/src/main/res/values/strings.xml b/mobile/src/main/res/values/strings.xml
index cf9dfc0c..7b139b4a 100644
--- a/mobile/src/main/res/values/strings.xml
+++ b/mobile/src/main/res/values/strings.xml
@@ -47,6 +47,7 @@
Wi\u2011Fi hotspot
Wi\u2011Fi hotspot (legacy)
Bluetooth tethering
+ Android system has failed to start tethering.
Connected devices
%s (connecting)