Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkourlas committed Sep 29, 2020
1 parent 1f9ad72 commit 93e7900
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import androidx.annotation.WorkerThread

abstract class IntentService(private val mName: String) : Service() {
@Volatile
private var mServiceLooper: Looper? = null
private lateinit var mServiceLooper: Looper

@Volatile
private lateinit var mServiceHandler: ServiceHandler
Expand All @@ -38,6 +38,7 @@ abstract class IntentService(private val mName: String) : Service() {
}
}

@Suppress("unused")
fun setIntentRedelivery(enabled: Boolean) {
mRedelivery = enabled
}
Expand Down Expand Up @@ -65,7 +66,7 @@ abstract class IntentService(private val mName: String) : Service() {
}

override fun onDestroy() {
mServiceLooper!!.quit()
mServiceLooper.quit()
}

override fun onBind(intent: Intent): IBinder? {
Expand Down

0 comments on commit 93e7900

Please sign in to comment.