Skip to content

Commit 77c8d50

Browse files
committed
Close app when timer runs out on BrightDisplayActivity
1 parent 174b2ac commit 77c8d50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/flashlight/activities/BrightDisplayActivity.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import com.simplemobiletools.flashlight.models.Events
1313
import org.greenrobot.eventbus.EventBus
1414
import org.greenrobot.eventbus.Subscribe
1515
import org.greenrobot.eventbus.ThreadMode
16+
import kotlin.system.exitProcess
1617

1718
class BrightDisplayActivity : SimpleActivity() {
1819
private val binding by viewBinding(ActivityBrightDisplayBinding::inflate)
@@ -104,7 +105,7 @@ class BrightDisplayActivity : SimpleActivity() {
104105
binding.sleepTimerHolder.beVisible()
105106

106107
if (event.seconds == 0) {
107-
finish()
108+
exitProcess(0)
108109
}
109110
}
110111
}

0 commit comments

Comments
 (0)