diff --git a/app/src/main/kotlin/jackall/overlaymulticounter/viewmodel/MainViewModel.kt b/app/src/main/kotlin/jackall/overlaymulticounter/viewmodel/MainViewModel.kt index 316ff6e..0ffc3de 100644 --- a/app/src/main/kotlin/jackall/overlaymulticounter/viewmodel/MainViewModel.kt +++ b/app/src/main/kotlin/jackall/overlaymulticounter/viewmodel/MainViewModel.kt @@ -64,6 +64,7 @@ } else { val intent = Intent(view.context, MainService::class.java) view.context.startService(intent) + (view.context as Activity).finish() } } else { AlertDialog.Builder(view.context)