Skip to content
Snippets Groups Projects
Verified Commit b4f074a5 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Further bugfixes

parent 20964c77
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ class BackendServiceConnection : ServiceConnection { ...@@ -57,7 +57,7 @@ class BackendServiceConnection : ServiceConnection {
} }
fun start(intent: Intent = QuasselService.intent(context!!)) { fun start(intent: Intent = QuasselService.intent(context!!)) {
if (!this.bound) context?.startService(intent) context?.startService(intent)
} }
fun bind(intent: Intent = QuasselService.intent(context!!), flags: Int = 0) { fun bind(intent: Intent = QuasselService.intent(context!!), flags: Int = 0) {
...@@ -65,7 +65,7 @@ class BackendServiceConnection : ServiceConnection { ...@@ -65,7 +65,7 @@ class BackendServiceConnection : ServiceConnection {
} }
fun stop(intent: Intent = QuasselService.intent(context!!)) { fun stop(intent: Intent = QuasselService.intent(context!!)) {
if (this.bound) context?.stopService(intent) context?.stopService(intent)
} }
fun unbind() { fun unbind() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment