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 174b2ac commit 77c8d50Copy full SHA for 77c8d50
app/src/main/kotlin/com/simplemobiletools/flashlight/activities/BrightDisplayActivity.kt
@@ -13,6 +13,7 @@ import com.simplemobiletools.flashlight.models.Events
13
import org.greenrobot.eventbus.EventBus
14
import org.greenrobot.eventbus.Subscribe
15
import org.greenrobot.eventbus.ThreadMode
16
+import kotlin.system.exitProcess
17
18
class BrightDisplayActivity : SimpleActivity() {
19
private val binding by viewBinding(ActivityBrightDisplayBinding::inflate)
@@ -104,7 +105,7 @@ class BrightDisplayActivity : SimpleActivity() {
104
105
binding.sleepTimerHolder.beVisible()
106
107
if (event.seconds == 0) {
- finish()
108
+ exitProcess(0)
109
}
110
111
0 commit comments