android, desktop: crash handler

This commit is contained in:
Avently
2023-12-06 02:45:01 +07:00
parent 7099776357
commit 68058a0091
10 changed files with 226 additions and 110 deletions
@@ -41,9 +41,7 @@ class MainActivity: FragmentActivity() {
)
}
setContent {
SimpleXTheme {
AppScreen()
}
AppScreen()
}
SimplexApp.context.schedulePeriodicServiceRestartWorker()
SimplexApp.context.schedulePeriodicWakeUp()
@@ -32,7 +32,9 @@ class SimplexApp: Application(), LifecycleEventObserver {
override fun onCreate() {
super.onCreate()
if (ProcessPhoenix.isPhoenixProcess(this)) {
return;
return
} else {
setGlobalErrorHandler()
}
context = this
initHaskell()