File tree Expand file tree Collapse file tree
app/src/main/java/io/nekohasekai/sfa Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import android.content.IntentFilter
99import android.net.ConnectivityManager
1010import android.net.wifi.WifiManager
1111import android.os.PowerManager
12+ import android.util.Log
1213import androidx.core.content.getSystemService
1314import io.nekohasekai.libbox.Libbox
1415import io.nekohasekai.libbox.SetupOptions
@@ -41,7 +42,11 @@ class Application : Application() {
4142 AppLifecycleObserver .register(this )
4243
4344// Seq.setContext(this)
44- Libbox .setLocale(Locale .getDefault().toLanguageTag().replace(" -" , " _" ))
45+ runCatching {
46+ Libbox .setLocale(Locale .getDefault().toLanguageTag().replace(" -" , " _" ))
47+ }.onFailure {
48+ Log .d(" Application" , " set locale: ${it.message} " )
49+ }
4550 HookStatusClient .register(this )
4651 PrivilegeSettingsClient .register(this )
4752
You can’t perform that action at this time.
0 commit comments