Commit 5a39f7cd authored by topjohnwu's avatar topjohnwu

Reduce duplicate initialization

parent 5d400fbe
...@@ -12,11 +12,7 @@ import kotlin.system.exitProcess ...@@ -12,11 +12,7 @@ import kotlin.system.exitProcess
class RootRegistry(stub: Any?) : RootService() { class RootRegistry(stub: Any?) : RootService() {
constructor() : this(null) constructor() : this(null) {
private val className: String? = stub?.javaClass?.name
init {
// Always log full stack trace with Timber // Always log full stack trace with Timber
Timber.plant(Timber.DebugTree()) Timber.plant(Timber.DebugTree())
Thread.setDefaultUncaughtExceptionHandler { _, e -> Thread.setDefaultUncaughtExceptionHandler { _, e ->
...@@ -25,6 +21,8 @@ class RootRegistry(stub: Any?) : RootService() { ...@@ -25,6 +21,8 @@ class RootRegistry(stub: Any?) : RootService() {
} }
} }
private val className: String? = stub?.javaClass?.name
override fun onBind(intent: Intent): IBinder { override fun onBind(intent: Intent): IBinder {
// TODO: PLACEHOLDER // TODO: PLACEHOLDER
return Binder() return Binder()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment