We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ffee54 commit da64e09Copy full SHA for da64e09
app/src/main/java/to/bitkit/androidServices/LightningNodeService.kt
@@ -136,8 +136,8 @@ class LightningNodeService : Service() {
136
when (intent?.action) {
137
ACTION_STOP_SERVICE_AND_APP -> {
138
Logger.debug("ACTION_STOP_SERVICE_AND_APP detected", context = TAG)
139
- // Close all activities
140
- App.currentActivity?.value?.finishAndRemoveTask()
+ // Close activities gracefully without force-stopping the app
+ App.currentActivity?.value?.finishAffinity()
141
// Stop the service
142
stopSelf()
143
return START_NOT_STICKY
0 commit comments