mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-04-07 15:14:28 +00:00
Reduce duplicate initialization
This commit is contained in:
parent
5d400fbe90
commit
5a39f7cdde
@ -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() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user