mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-05 08:56:09 +00:00
android, desktop: show alerts on critical and internal errors (#3653)
* android, desktop: show alerts on critical and internal errors
* test
* don't stop chat if it's stopped already
* show notification
* restart chat or app
* Revert "test"
This reverts commit 5b78bbae5b.
* update strings
* strings2
* refactoring
* refactoring2
* refactoring3
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
fadce0c140
commit
267178dddb
@@ -0,0 +1,7 @@
|
||||
package chat.simplex.common.views.database
|
||||
|
||||
import chat.simplex.common.views.usersettings.restartApp
|
||||
|
||||
actual fun restartChatOrApp() {
|
||||
restartApp()
|
||||
}
|
||||
@@ -28,7 +28,7 @@ actual fun SettingsSectionApp(
|
||||
}
|
||||
|
||||
|
||||
private fun restartApp() {
|
||||
fun restartApp() {
|
||||
ProcessPhoenix.triggerRebirth(androidAppContext)
|
||||
shutdownApp()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user