mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
android, desktop: refactor alerts for slow calls (#3811)
* android, desktop: refactor alerts for slow calls * sharing text in alerts * more time to send message * removed suspend modifier from processing messages * change * Revert "removed suspend modifier from processing messages" This reverts commit895e804c1b. * Revert "change" This reverts commit013abf49e6.
This commit is contained in:
committed by
GitHub
parent
91f10c056f
commit
865a32c608
@@ -71,7 +71,7 @@ class SimplexApp: Application(), LifecycleEventObserver {
|
||||
|
||||
override fun onStateChanged(source: LifecycleOwner, event: Lifecycle.Event) {
|
||||
Log.d(TAG, "onStateChanged: $event")
|
||||
withBGApi {
|
||||
withLongRunningApi {
|
||||
when (event) {
|
||||
Lifecycle.Event.ON_START -> {
|
||||
isAppOnForeground = true
|
||||
|
||||
Reference in New Issue
Block a user